Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Handle and HomeHandle...

 
aadhi agathi
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the following types of handle can be got from the EJBObject. Can someone provide the usage of these two Handles.
Handle getHandle()
HomeHandle getEJBHome().getHomeHandle()
Thank you
 
william kane
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Getting and storing the hanlde(by serialization) will ensure that you get the reference of the EJBObject even after the client session ends.
You are there saved the labour of having to look up and get the EBJHome and EjbObject references if you have saved the handle for the respective object.
 
aadhi agathi
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by william kane:

You are there saved the labour of having to look up and get the EBJHome and EjbObject

i can understand that . But i am looking for some example for these contexts.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic