Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About Handle

 
Ram Krish
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can anyone explain about the use of handles in ejb? I really cannot visualize a situation wherein we go for handles. Thanx in advance

Ram.
 
Bahadar Khan
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ram,

Did you read about Service Locator design pattern? I am sure you would.
So just imagine how it stores references to the Home stubs! getHandle() actually provides you with the serialized version of the Home stub, which you can cache or store on disk for later use. So you wouldn't need to go through the whole JNDI lookup process each time you need that stub.

Hope it would help

cheers
-Bahadar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic