• Post Reply Bookmark Topic Watch Topic
  • New Topic

Caching EJB's - regarding

 
PN Kumar
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any reason why remote interfaces of
"stateless" session EJB's should not be cached?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't think of any common reasons for not to.
However, if you need to cache the reference persistently, you'll have to use a Handle because the regular stub object is not guaranteed to be Serializable.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!