• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Runtime Exception while invoking an EJB Component

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic