• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Caching SLSB handle

 
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe, this link might help..

parag
[ September 01, 2004: Message edited by: Parag Doshi ]
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic