Activate spring profile in EJB -
i'm using spring profile webapp's , works great.
i activate profile in web.xml files :
<context-param> <param-name>spring.profiles.active</param-name> <param-value>myprofile</param-value> </context-param>
but i'm stuck mdb.
i bootstrap spring mdb springbeanautowiringinterceptor , works don't known how activate profile mdb.
i've tried add env-entry doesn't seem work :
<env-entry> <env-entry-name>spring.profiles.active</env-entry-name> <env-entry-type>java.lang.string</env-entry-type> <env-entry-value>myprofile</env-entry-value> </env-entry>
can me?
is there way activate profile via beanrefcontext.xml (used interceptor) ?
thank you
stéphane
instead of looking context params, can try setting jndi. (spring looks active profiles in jndi on startup default.) looks string
array (comma delimited string or array) , it's looking under key spring.profiles.active
Comments
Post a Comment