This content has been marked as final.
Show 1 reply
-
1. Re: Clustered/Non-clustered config for SFSB's
emuckenhuber Dec 14, 2008 4:42 AM (in response to asookazian)"asookazian" wrote:
It's possible to pass in a param using -D when starting JBoss with run.bat but won't we have to moving the annotations from the classes to metadata in jboss.xml or ejb-jar.xml?
Hmm that could work. So if i understood you correctly you want to pass a System property e.g. my.app.clustered
And then define the clustered property in jboss.xml like:<enterprise-beans> <session> <ejb-name>TestBean</ejb-name> <home-jndi-name>TestBeanHomeJndiName</home-jndi-name> <local-home-jndi-name>TestBeanLocalHomeJndiName</local-home-jndi-name> <clustered>${my.app.clustered}</clustered> </session> </enterprise-beans>
Although i'm not sure if this will work without problems :)
Otherwise you could create a jboss.xml descriptor for your dev environments,
where you override the annotations by setting clustered=false.