[jboss-user] [EJB3] - Re: Set "maxSession" of an MDB using XML instead of Annotations

Vadim Kopichenko do-not-reply at jboss.com
Fri Mar 23 14:59:34 EDT 2012


Vadim Kopichenko [https://community.jboss.org/people/vkopichenko] created the discussion

"Re: Set "maxSession" of an MDB using XML instead of Annotations"

To view the discussion, visit: https://community.jboss.org/message/726025#726025

--------------------------------------------------------------
I've also tried to find a way to externalize the maxSession property out of ear.
But had no success with this solution under JBoss 4.2.3.GA. DefaultActivationSpecs were not taken into account.

Extensive googling gave a  https://community.jboss.org/thread/195382 hint to alternative solution with using system properties in ejb-jar.xml. It works with all versions before JBoss AS 7.
So now I can just update property in deploy/properties-service.xml then touch ear to redeploy and new setting gets applied.
No full JBoss restart is needed.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/726025#726025]

Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120323/680f6acd/attachment.html 


More information about the jboss-user mailing list