File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes RMI required? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "RMI required?" Watch "RMI required?" New topic
Author

RMI required?

Vrunda Joshi
Ranch Hand

Joined: Dec 03, 2001
Posts: 104
hi all,
i am preparing for the exam..and i am using the HFSJ book..i absolutely don't have any background in RMI..so i am finding it difficult to understand the last chapter besides patterns..do i need to understand rmi before reading the last chapter or taking exam?

thanks in advance
-vrunda
Alex Cheung
Greenhorn

Joined: Nov 14, 2005
Posts: 12
No RMI needed. That is for SCBCD.
Bryan Basham
author
Ranch Hand

Joined: Apr 30, 2001
Posts: 199
Hello Vrunda,

You do not need to know how RMI works, but you do need to know what RMI does. RMI is Java infrastructure and APIs that allow distributed method calls. In a little more detail: a client program on machine X calls method calcShippingCosts() on a remote object on machine Y. What RMI does is that there is a proxy object on the client that includes the calcShippingCosts() method. The client calls this method on the proxy object. The proxy then converts the method call into a TCP/IP message to the remote JVM. The TCP message is read by the remote JVM and forwards the call to the remote object. The remote object performs the calculation and returns the result to the remote JVM. The remote JVM converts the result into a return message to the client-side proxy object. The proxy object converts the TCP response message into a Java value which is then returned to the client object as the result of its calcShippingCosts() method call.

So, what does this mean for the SCWCD exam? Basically, what you need to know is that a BusinessDelegate is the pattern which hides the details of dealing with making remote method calls. RMI is a "behind the scenes" aspect of the pattern.

HTH,
Bryan
Vrunda Joshi
Ranch Hand

Joined: Dec 03, 2001
Posts: 104
Thanks a lot Alex and Bryan,
will keep that in mind..
-vrunda
 
GeeCON Prague 2014
 
subject: RMI required?