Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJBHome & Bean

 
sanjeevmehra mehra
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.
 
Sandesh Tathare
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic