tags:

views:

78

answers:

3

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
A: 

You don't need to create stub classes at all. See the preamble to the Javadoc for UnicastRemoteObject.

EJP
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