dcsimg
homeInterface.create()
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Bennet_Morais
Posted On:   Tuesday, May 22, 2001 03:06 AM

I have a servlet, which looks up a stateless session bean, creates an instance of it and stores it as member of the servlet in the servlet's init() method.

The EJBObject created will be alive till my servlet is alive. In a heavily visited site won't, creating lots of instances of EJB Object and storing it like this, cause a performance bottleneck??

Re: homeInterface.create()

Posted By:   Anonymous  
Posted On:   Saturday, May 26, 2001 12:35 AM

May I ask you a question? Why are you using this approach?

I can't really tell you how the EJB Container will handle a situation like this one. What I can say is that since you're using Sateless Session Beans, you probably should leave the caching and the management of the bean distribution to the Container. Probably this is the better solution, because the Container will be able to manage enough instance of the beans and provide it to the client that needs it.

This is just my opinion, though.

Regards.
About | Sitemap | Contact