aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes ejbCreate() call for a Stateless Session Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "ejbCreate() call for a Stateless Session Bean" Watch "ejbCreate() call for a Stateless Session Bean" New topic
Author

ejbCreate() call for a Stateless Session Bean

BalajiNityaa Varadharajan
Greenhorn

Joined: Jan 15, 2006
Posts: 19
Hi,

I have read in so many books that ejbCreate() need not be neccesarily called for a Stateless Session Bean when the client calls the create method as the Container would have created the Beans before hand and have them in the bean pool...

I have used Weblogic,Websphere and JBoss and in all the three every time the ejbCreate() is been called when the client calls the create method.

I know it is purely the Containers decision if it wants to have the beans created and be kept in the pool... but still i would like to know if any one has come across a situation where the ejbCreate() not being called, if so in which server...
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
It is entirely possible to set up a pool containing no instances on server startup. This would account for what you have seen.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
BalajiNityaa Varadharajan
Greenhorn

Joined: Jan 15, 2006
Posts: 19
May i Know how to make sure that the bean instances are created during server startup...
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
This is vendor-specific. Typically, an XML file or GUI is used to specify the number of bean instances to be created on server startup.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

For weblogic
http://edocs.bea.com/wls/docs81/perform/EJBTuning.html#1139797


Groovy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ejbCreate() call for a Stateless Session Bean