[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Profile activation on deployment

Do you need the profile to be active "during deployment" (vs at runtime)?

There are several options for specifying a profile either programmatically or in your app metadata:
http://diarmuidmoloney.wordpress.com/2012/04/07/spring-environments/  (scroll to the end of the post)

If you want to pass a -D to the jboss startup invocation, you can do so by setting the environment variable JAVA_OPTS_EXT, eg
rhc set-env JAVA_OPTS_EXT=-Dspring.profiles.active=ose -a myapp

Ben Parees | OpenShift

----- Original Message -----
From: "s madathilthattantav" <s madathilthattantav accenture com>
To: dev lists openshift redhat com, users lists openshift redhat com
Sent: Monday, January 6, 2014 6:49:12 AM
Subject: Profile activation on deployment

Hi All 

Any clue about how to activate a particular spring profile while deploying application in JBossAS7 in openshift? 

For ex : I need to activate -Dspring.profiles.active=ose during deployment 

I tried couple of options but none seems to work 

Trying this in Origing –v2 in Fedora19 



This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy. . 


users mailing list
users lists openshift redhat com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]