Session Facade
1 posts in topic
Flat View  Flat View

Posted By:   Ashish_Sinha
Posted On:   Monday, February 25, 2002 10:58 PM

I have a Stateless Session Bean that acts as a facade to 2 entity beans. Also it needs to talk to 2 other session beans.

I want to preserve the home handle in case of the entity beans and the remote stub in case of Session Bean so that I do not have to do ...jndiContext.lookup() again and again.

Is it appropriate to do so ? If yes, how should I preserve these objects

1. populating them statically

2. using Singleton

3. making them member variables

Re: Session Facade

Posted By:   Bozidar_Dangubic  
Posted On:   Tuesday, February 26, 2002 04:58 AM

3. is your best bet. make sure that when bean is passivated and activated you reinitialize the member variables. check the spec. some are preserved others are not.
About | Sitemap | Contact