Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting up a service?

Status
Not open for further replies.

wduty

Programmer
Jun 24, 2000
271
US
I'm working on a simple sockets-based chat-room. It's ultra basic. The "server" is a command-line java program which accepts connections on port 873. The clients are applets which connect to the server program. Although this works, this requires starting the chat server manually and therefore leaves a prompt open (as long as the server is running).

How do I start up the server automatically when I start the computer? Furthermore, is it possible to do this so that it doesn't show up as a prompt but runs as a system service (maybe with an icon in the lower right hand task-bar)?

--Will Duty
wduty@radicalfringe.com

 
Dear Will,

> How do I start up the server automatically when I start the computer?

That is OS dependant.

> Furthermore, is it possible to do this so that it doesn't show up as a prompt
> but runs as a system service

Still OS dependant.

> (maybe with an icon in the lower right hand task-bar)?

You guessed it... OS dependant ;o)

This doesn't help much... sorry.
-pete
 
NT4

--Will Duty
wduty@radicalfringe.com

 
Dear Will,

In Windows NT4, your description sounds like what is referred to as an 'NT Service'. I would suggest that you look into the definition of an NT Service and see if you think that is what you want.

Here is a great place to start as well as showing you how to use Java and the com.ms.service package to create an NT Service


Hope this helps
-pete
 
I looked over it and it sounds about right. I'll see if I can implement that. Handy that they have the java details. Thanks Pete.

--Will Duty
wduty@radicalfringe.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top