[jboss-dev-forums] [JBoss AS 7 Development] - EJB 3.1 Singleton bean across EARs

Vladimir Kishlaly do-not-reply at jboss.com
Wed Jul 18 11:00:37 EDT 2012


Vladimir Kishlaly [https://community.jboss.org/people/mkind] created the discussion

"EJB 3.1 Singleton bean across EARs"

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

--------------------------------------------------------------
Hello!
As I know, @Singleton has only one instance per JVM.
I have commons.jar with com.example.MyBean (singleton) and commons.jar deploys to several EARs (inside lib folder). Will I have an access to only one instance from any EARs or each EAR will have own instance of the MyBean?

Thanks,
Vladimir
--------------------------------------------------------------

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120718/613b47e5/attachment.html 


More information about the jboss-dev-forums mailing list