Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stateless session EJB - number of container instantiations

Status
Not open for further replies.

sedj

Programmer
Aug 6, 2002
5,610
0
0
Hi,

I was under the impression that an EJB container created only one instance of a stateless session bean, so that for each jndi lookup, ejbCreate() would only be called once - if the bean was not instantiated.

Now, I have heard that this is also vendor specific, and so many instances may be created when the jndi lookup is performed.

The problem I am having is that sometimes, under certain conditions specific to the behaviour of objects under my ejb's domain, ejbCreate() seems to be called when a jndi lookup is performed - rather than return a reference to the (definetly) already instantiated object.

Can anybody shed any light on this ?!

Thanks
 
Oh, I'm running JBoss 3.2.2RC4 (EJB spec 2.0, j2ee version 1.3) ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top