This week's book giveaway is in the Artificial Intelligence forum.
We're giving away four copies of Pragmatic AI and have Noah Gift on-line!
See this thread for details.
Win a copy of Pragmatic AI this week in the Artificial Intelligence forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Runtime Exception while invoking an EJB Component  RSS feed

 
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 ]
 
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.
 
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!