aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Local and Remote Client Views Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Local and Remote Client Views" Watch "Local and Remote Client Views" New topic
Author

Local and Remote Client Views

Sandesh Tathare
Ranch Hand

Joined: Jun 22, 2003
Posts: 82
EJB Spec on page 54 says:
Note that although collocation of the remote client and the enterprise bean may allow the container to reduce the overhead of calls through the remote interface, because any optimizations based on collocation must be done transparently, such calls are still likely to be less efficient than calls made using the local interface.




Can some one please explain above?


Regards,<br />Sandesh<br />(SCJCP, SCWCD, SCBCD - 99%, OCP-1)<br /> <br />Either find a way or create one.
Arun Krishnamoorthy
Greenhorn

Joined: Nov 03, 2004
Posts: 22
If your remote interface stub is for some reason being used in the same jvm heap as the enterprise bean itself (i.e. with the remote object representing the bean), the container still needs to have some intelligence in the stub which would identify the client as being local to the bean. Determining this would still be some level of overhead when compared to using the local interface where the container doesn't need to make any such checks. It directly calls the bean's local object.
Sandesh Tathare
Ranch Hand

Joined: Jun 22, 2003
Posts: 82
Wow Arun,

Gr8 Man! Thanks a lot 4 such nice reply. It clarified my thoughts now.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Local and Remote Client Views
 
Similar Threads
collocation in EJB 2.0
About Remot session bean
@Remote and @Local
quick EJB question on @remote
LocalHomes