[jboss-user] [EJB3] - Re: SLSB pool size is always one in jboss 6.0 CR1 using ejb 3.1

aravind kopparthi do-not-reply at jboss.com
Tue Nov 23 09:14:18 EST 2010


aravind kopparthi [http://community.jboss.org/people/aravindsk] created the discussion

"Re: SLSB pool size is always one in jboss 6.0 CR1 using ejb 3.1"

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

--------------------------------------------------------------
I have followed your link and thinking that i should change default configured annotation pool value to something like this in ejb-intersepters-aop.xml for Stateless Bean domain.?

  <annotation expr="class(*) AND !class(@org.jboss.ejb3.annotation.Pool)">
          @org.jboss.ejb3.annotation.Pool (value="StrictMaxPool", maxSize=7,   timeout=10000)
      </annotation>

no error but i still see that each Singleton Ejb bean is referencing it's injected SLSBean as a just bean instance not as a pool instance. calls are still synchronized. 

i tried to create a new SingletonBean2 where i injected same SLSBean and started calling methods on SLSBean similler to SingleTonBean and this time two SLSBeans were created and each one associated only to their SingletonBeans. 
what i understand from this is SLSBeans that are injected into SingletonBeans ejbs are maintained as just bean instances are than pool instances.

please let me know if there is anything that i am doing wrong or expecting unusual.
--------------------------------------------------------------

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

Start a new discussion in EJB3 at Community
[http://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/20101123/61b658ec/attachment.html 


More information about the jboss-user mailing list