aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes RMI Questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "RMI Questions" Watch "RMI Questions" New topic
Author

RMI Questions

Ehsan Rahman
Ranch Hand

Joined: Feb 16, 2009
Posts: 59

How ya’all high-ridin’ cow boys & girls doing?

What design pattern (or simple solution) can allow business method interface (book, unbook, create, etc) to be implemented by both the concrete RMI interface (which needs to throw the RemoteException) and a concrete non-RMI (i.e. none-networked mode) class? I feel like I’m missing a solution here in terms of redefining the methods. Your kind guidance please

My lock interface methods (B&S) don’t require any cookies to be used. I’m pretty tempted to expose the business methods via RMI and allow threads to deal with each business method accordingly from the client. Some people have the view this is against the intent of the assignment. Just out of curiosity, why is this so? In industry is it frowned upon to use RMI in this way?


SCJP 1.5, SCJD 1.6
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2524
    
    8

Howdy, I suggest you take a look at the RMI tutorial.

For your achitecture design, the RMI server uses a "remote" interface where you define the methods for clients to use. Similarly the local version that implements Sun's provided interface should contain the same methods. Then you need some interface on top of that that covers both remote and local interfaces.


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5 OCPBCD5
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5407
    
  13

Hello Ehsan,

Regarding your question about RMI take a look at this thread. It certainly will be helpful.

Some people have the view this is against the intent of the assignment. Just out of curiosity, why is this so?

You can find an interesting (and very long) discussion here.

Kind regards,
Roel


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Ehsan Rahman
Ranch Hand

Joined: Feb 16, 2009
Posts: 59

Thank you both, and thanks for the links, definitely helpful.

Time to experiment on the GUI. Have a good day

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI Questions