• 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:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Runtime Exception while invoking an EJB Component

 
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.
 
Put a gun against his head, pulled my trigger, now he's dead, that tiny ad sure bled
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic