The Artima Developer Community
Sponsored Link

Java Answers Forum
java newbie wants RMI task list

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Guido

Posts: 38
Nickname: kiethb
Registered: May, 2002

java newbie wants RMI task list Posted: Apr 16, 2003 10:15 AM
Reply to this message Reply
Advertisement
anyone have a good task list breaking down the steps and results for a very simple RMI example? this is what is giving me a hard time...

This is what I am doing, if you can tell me where my fault lies, it would be much appreciated.

copied source from book

compiled java source code using the -d option.

this created a directory structure of:

c:\helloworld\src\main masteringrmi.helloworld.client Main.class
c:\helloworld\src\main masteringrmi.helloworld.interfaces HelloWorld.class
c:\helloworld\src\main masteringrmi.helloworld.server Main.class & HelloWorldImpl.class


I then used the RMIC compiler to create the stub and skeleton classes
where should these classes reside after they are created? should they be packaged with their
associative classes?

the RMIC compiler created these classes (HellowWorldImpl_Stub and HelloWorldImpl_Skel) in the
directory:
c:\masteringrmi\helloworld\server

the thing that confuses me is, this is the package structure that RMIC created which essentially
duplicated the package but is directly off the c:\ root directory. I assumed this might not be
bad because I read that the proxy classes should not be in the classpath when you start up the RMIRegistry...
again, I need to know if that is correct

lastly, I understand that I should split these packages among 2 JAR files... one for the client and one
for the server. does it matter where the JAR files end up? where do they need to be? visible anywhere
in the classpath?

Topic: Any software to update deprecated classes? Previous Topic   Next Topic Topic: com.sun.java.util.collections

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use