• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Caching SLSB handle

 
D. Rose
Ranch Hand
Posts: 215
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 317
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe, this link might help..

parag
[ September 01, 2004: Message edited by: Parag Doshi ]
 
Matt Lewis
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 215
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 317
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 108
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 344
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic