sedj
Programmer
- Aug 6, 2002
- 5,610
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
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