hi i have an assignment with java rmi, and now i want to create the stub classes for this project, but i dont know how. i want to learn creating stub for rmi projects. can you help please. i want you to answer me in detail.
+2
A:
I suggest you read through the RMI tutorial, this second tutorial, and the docs for rmic
. If those don't help you, you can then ask a more specific question explaining which bit wasn't covered.
Jon Skeet
2010-02-08 11:38:59
A:
You don't need to create stub classes at all. See the preamble to the Javadoc for UnicastRemoteObject.
EJP
2010-02-15 02:24:03
A:
Since J2SE 5, stub classes no longer need to be pre-generated. There's still lots of old tutorials out there, so that might be confusing at first.
Here's a nice, more recent Hello World tutorial for RMI that'll get you going.
JRL
2010-02-15 02:39:53