You know the answer. ;-)
You need to use XML. Use system property substition to make it externally configurable:
| <clustered>${com.foo.clustered:true}</clustered>
|
Then, to turn off clustering for the 'default' config
./run.sh -Dcom.foo.clustered=false
If you use the annotation, the container will see it and try to add clustering behavior. In the absence of the needed support services this will fail the deployment.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124140#4124140
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124140