[jboss-user] [EJB3] - How can I configure a @Service bean externally

david_b do-not-reply at jboss.com
Mon Apr 4 07:47:38 EDT 2011

david_b [http://community.jboss.org/people/david_b] created the discussion

"How can I configure a @Service bean externally"

To view the discussion, visit: http://community.jboss.org/message/597540#597540

Hi all,

I've developed a JBoss service using the @Service annotation. I've now come to the point where I need to configure the service for different deployments. Usually I'd use resource injection and env-entries in the ejb-jar.xml file, but this doesn't seem to be supported for service beans.

I've found a rather old feature request for adding this support:
 https://issues.jboss.org/browse/EJBTHREE-801 https://issues.jboss.org/browse/EJBTHREE-801

Assuming this still isn't available, I have a couple of questions. 

Is there a good alternative to the ejb-jar file that will work in a clustered environment? Something better than a properties file?

Is there an alternative to the @Service annotation that provides the same functionality (singleton statefull session bean) and supports configuraiton through the ejb-jar file?

I'm using JBoss AS 6 and EJB 3.1.

Any help would be appreciated.


Reply to this message by going to Community

Start a new discussion in EJB3 at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110404/75696a0a/attachment.html 

More information about the jboss-user mailing list