This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJBHome & Bean

 
sanjeevmehra mehra
Ranch Hand
Posts: 75
  • 0
  • 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
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the reply.


regards,
sanjeev.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic