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

Runtime Exception while invoking an EJB Component  RSS feed

 
vikram veera
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Weblogic Server 8.1 SP3.
My Action class is calling a stateless session bean which is deployed in WLS.
In weblogic-ejb-jar.xml we have set max bean instance in the pool for the stateless session bean as follow

<pool>
<max-beans-in-free-pool>20</max-beans-in-free-pool>
<initial-beans-in-free-pool>10</initial-beans-in-free-pool>
</pool>
10 beans fully occupied fails before 11th got created.

Problem:
Pool miss ratio is not 00.00 it is 015.8 something.

Error encountered:- A new instance of Bean Creation Failed

I am getting the following Exception saying

Runtime Exception while invoking an EJB Component invocation of EJB timed out while waiting to get an instance from the free pool.

Can any one ,Please share inputs or help in this regards.

Regards
Vikram
[ February 09, 2006: Message edited by: vikram veera ]
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try setting initial-beans-in-free-pool to the same calue as max-beans-in-free-pool. You should do this for production in order to avoid delays in instantiating beans whilst under load.
 
Purushoth Thambu
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How much time does it takes to create a new instance of the bean? you can first try to figure how much time does weblogic takes to create a new instance and then you can check if this value is well less than trans-time-out value. If you suspect weblogic is taking quite some time then you need to take thread dumps to find out why and continue from there.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!