i m new to java. i need to run this program using RMI. i need to give inputs from server side and get the implementation done at client side and get the result back to server.
i've tried by making client and server's implementation code and interfece code.... using rmi registryalso
But it's not executing...
but i m not getting how to do it...
Can any body help me out of this....
I cant see anywhere in the code where you are actually looking up the server from the rmi registry (althoguh i did only havce a quick glance)
In your server code you need to extend UnicastRemoteObject and write the name of the server to the RMIRegistry with Naming.bind() (or use the static methods of UnicastRemoteObject)
Then you need to start the RMIRegistry with either
Then you can launch your server, which will bind itself to the RMIRegistry.
Once the rmiregistry has been started and your server is online you can run your client.
In your client code you need to use the naming service to lookup your server
if you are doing it over two remote machines then you MUST install a security manager.
Hope that helps
Joined: Mar 21, 2012
Will you please tell me how to remove main method in BoyerMooreImpl.java file which is above one.... I need to send parameters directly to calling method not to main method...
So for that i need to remove main method and shift its operations in other methods in it...and also return the values from other method...