aspose file tools*
The moose likes Distributed Java and the fly likes How to Start RMI server on System Boot Up Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "How to Start RMI server on System Boot Up" Watch "How to Start RMI server on System Boot Up" New topic
Author

How to Start RMI server on System Boot Up

Rakesh Chaudhary
Ranch Hand

Joined: Feb 19, 2008
Posts: 120

Hi Ranchers,

How can we start a RMI Server on a Machine on boot-up.

Can Any One provide some links for creating a Windows service from a Java Jar file.

And how to implement security policy for communication between Client's and Server.


Thanks.


Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

Java Service Wrapper will help you on making windows service.

You can run RMI over SSL to provide security. Here is a relevant article.


apigee, a better way to API!
Rakesh Chaudhary
Ranch Hand

Joined: Feb 19, 2008
Posts: 120
Hi Nitesh,

I think Java Wrapper is a third party tool and I have a restriction(from my seniors)for using a 3rd party tool.
I tried creating it using sc.exe from command prompt,I was successful in doing it atleast creating a Service to showcase it in
the Services List,but I was unable to start because it kept giving me unnecessary errors and weird errors.

Can't we create it successfully by using only the Sc command.

Waiting for your inputs.

Thanks

Rakesh Chaudhary
Ranch Hand

Joined: Feb 19, 2008
Posts: 120
Hi Again,

Sorry I didnt made it more informative,but I think I made my point by specifying the Restriction for use of a 3rd party tool

I am using Windows Vista Ultimate

I am using following command to create a service for my RMIService to start .


In Command prompt:

sc \\MyMachineName create RMIServer binPath= (path of my jar file)

By doing this the service is getting created but not start its throwing the following error

Error 193 : 0xc1

I googled but all in vein I didn't got any success.

 
wood burning stoves
 
subject: How to Start RMI server on System Boot Up