File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Caching SLSB handle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Caching SLSB handle" Watch "Caching SLSB handle" New topic
Author

Caching SLSB handle

D. Rose
Ranch Hand

Joined: Apr 25, 2003
Posts: 215
Is it possible to cache handle of a stateless session bean in the cache?
I think it is not as we do not know which instance serves us. I am not quite sure about it though as I have seen something to that effect on web.

Any insight?
Parag Doshi
Ranch Hand

Joined: Jun 29, 2004
Posts: 317
Maybe, this link might help..

parag
[ September 01, 2004: Message edited by: Parag Doshi ]
Matt Lewis
Greenhorn

Joined: Jul 26, 2004
Posts: 8
Surely if it is a stateless session bean then you dont need to know which instance serves you??

The link given above is correct. You are able to cache the handle to a session bean object
D. Rose
Ranch Hand

Joined: Apr 25, 2003
Posts: 215
Thanks Parag.
I think now I am clear.
One can cache the handle of stateless session bean but it would be detrimental to performance. It defeats the purpose for server side pooling etc.
For SFSB, as it is good to cache the reference to abovoid network round trip.
Parag Doshi
Ranch Hand

Joined: Jun 29, 2004
Posts: 317
Originally posted by D. Rose:
Thanks Parag.
I think now I am clear.
One can cache the handle of stateless session bean but it would be detrimental to performance. It defeats the purpose for server side pooling etc.
For SFSB, as it is good to cache the reference to abovoid network round trip.


Where would you cache the Stateful Session Bean Handle then? I am not clear who is responsible for caching the stateful session bean handle. Is it the http session, business delegate or service locator?

any ideas, anyone?

Parag
H. Hafer
Ranch Hand

Joined: Aug 23, 2004
Posts: 108
Originally posted by Parag Doshi:


Where would you cache the Stateful Session Bean Handle then? I am not clear who is responsible for caching the stateful session bean handle. Is it the http session, business delegate or service locator?


Not sure either, but since a handle is something a client wants to deal with, my shot would be the business delegate.
Ramon Gill
Ranch Hand

Joined: May 15, 2003
Posts: 344
Is it worthwhile doing any caching of handles? I'm sure I read in the Ed Roman book that its not worth it.

Any other comments?

Ray
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Caching SLSB handle