• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

EJBHome & Bean

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for the reply.


regards,
sanjeev.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic