This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Start RMI server on System Boot Up

 
Rakesh Chaudhary
Ranch Hand
Posts: 120
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 1638
IntelliJ IDE Java MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java Service Wrapper will help you on making windows service.

You can run RMI over SSL to provide security. Here is a relevant article.
 
Rakesh Chaudhary
Ranch Hand
Posts: 120
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 120
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic