JBoss Community

EJB 3.1 Singleton bean across EARs

created by Vladimir Kishlaly in JBoss AS 7 Development - View the full discussion

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

Start a new discussion in JBoss AS 7 Development at Community