if is EJB lookup references thread safe ?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, November 27, 2007 03:51 AM

Now I make lookup for EJB every action in application that need it.
But I think that it make low perfomance.

I think store refence of lookup in some single tone object and use it .. I meen make one time lookup for EJB..

If this refence is persistent (not expired) and thread safe?
Or it is right way make lookup for beed in each atomic action.

Thanks..

Re: if is EJB lookup references thread safe ?

Posted By:   sreenath_reddy  
Posted On:   Tuesday, December 4, 2007 06:31 AM

Yes they are thread safe. We are looking up only home objects so it will not be a problem. Any time u will get only the one reference ie u will be having only one home object in the EJB container.
About | Sitemap | Contact