Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

EJBHome & Bean

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

bean provider is not extending Bean from EJBHome. Bean is not child of Home interface, but still we cast it with Home interface & acess the methods. Comments please.

thanks & regards,
Sanjeev.
 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You say:
----------------------------------------------------------------------------
bean provider is not extending Bean from EJBHome. Bean is not child of Home interface, but still we cast it with Home interface & acess the methods. Comments please.
----------------------------------------------------------------------------

Looks like you are mixing up 2 things. Bean class does not implement Home interface. The object that implements Home interface is created by EJB Server and client gets Stub of the same, when we do look up. In short, the Stub (to Home object) returned to client by look up can be narrowed and casted to Home interface. Hope that clarifies your ideas now.
 
sanjeevmehra mehra
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the reply.


regards,
sanjeev.
 
Surfs up space ponies, I'm making gravy without this lumpy, tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic