Forums Register Login

Caching SLSB handle

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
Maybe, this link might help..

parag
[ September 01, 2004: Message edited by: Parag Doshi ]
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
 

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
+Pie Number of slices to send: Send
 

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.
+Pie Number of slices to send: Send
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
A timing clock, fuse wire, high explosives and a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 870 times.
Similar Threads
Cache in EJB tier
servlets alternatives
The mysterious 65/80 locking score
CMR in CMP Entity Beans
Business Delegate
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 18, 2024 23:37:53.