aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes EJBHome & Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "EJBHome & Bean" Watch "EJBHome & Bean" New topic
Author

EJBHome & Bean

sanjeevmehra mehra
Ranch Hand

Joined: Aug 21, 2004
Posts: 75
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.


thanks & regards,<br />Sanjeev.
Sandesh Tathare
Ranch Hand

Joined: Jun 22, 2003
Posts: 82
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.


Regards,<br />Sandesh<br />(SCJCP, SCWCD, SCBCD - 99%, OCP-1)<br /> <br />Either find a way or create one.
sanjeevmehra mehra
Ranch Hand

Joined: Aug 21, 2004
Posts: 75
thanks for the reply.


regards,
sanjeev.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJBHome & Bean
 
Similar Threads
Return Type in Home methods
Home Interface Create method
ejbHome methods in home interface
Ejb Select Method
EPractice Labs - Wrong answer????