This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Yes. In summary this is how you do it. Create your RMI server class, implementation class and interface class and then compile with javac and rmic. rmic will create the skeleton and stub classes. Copy the skeleton, stub and interface classes to the client. Start the rmiregistry process and then run your server class. On the client your servlet will need to bind to the registry service running on the server. Once this is done you can call the remote methods in your servlet. Sun has a good rmi tutorial if you need more detail. regards, Ralph