Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with EJB Stateless Session Beans (Use In Beans Count).  RSS feed

 
Karan Goud
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have maximum no.of users, our application using EJB's with stateless session beans.we got following exception when Beans In Use Count reached the maximum '1000',

EJB Exception: ; nested exception is:
java.lang.RuntimeException: An invocation of EJB actionForMenu(Application: mydomain, EJBComponent: actionformenu.jar) timed out while waiting to get an instance from the free pool.

Problem is Beans Count is not removed from the session or Ejb container, We are tried with the local environment Bean count is increased and decresed as per the request is completed, but in production it is not happend.

Please help us to how to decrease the BeanCount In use when request is completed.

Thanks in advance.
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What makes you think that the bean instances are not being returned to the pool in production?
 
Karan Goud
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your response
In production When reached the Beans In Use Count maximum(here 1000) , Next User(1001) click the corresponding link they are getting Blank page with below exception in the log file.

EJB Exception: ; nested exception is:
java.lang.RuntimeException: An invocation of EJB actionForMenu(Application: mydomain, EJBComponent: actionformenu.jar) timed out while waiting to get an instance from the free pool.

Restarting thye server is giving us temparory solution, but this is not good enough for client.

We are tried with the local environment,here bean instances are removed from the Container.

Please let me know any further information.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bean instances are returned to the pool when the invoked method ends. Check whether, in production, something is preventing the method from ending in a reasonable period of time.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!