Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

question #5 p292

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
b. is true - how come? I see you can use getHandle() to get a handle but I don't see how you can use a handle to get a object ref. I know it must exist or else what good would getting a handle be. I just don't know what method you would call to convert a Handle to and Object ref.
c. is not true - why? can't I call get the object ref from findByPrimaryKey(pk) ?
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Following are the methods u can call upon in order to get Object refrences to either yr Home or yr Remote interface.
1)getHomeHandle() method in java.ejb.EJBHome interface returns a javax.ejb.Handle Object.You can call getEJBHome() method on this HomeHandle Object to get a refrence to yr Home Interface.
2)getHandle() in yr javax.ejb.EJBObject interface returns a javax.ejb.Handle Object.You can call getEJBObject() method on this Handle Object to get a refrence to yr Remote/EJBObject Interface.
Hope that was of help to you...
    Bookmark Topic Watch Topic
  • New Topic