The Artima Developer Community
Sponsored Link

Java Answers Forum
Chat program doubt

3 replies on 1 page. Most recent reply: Jul 4, 2005 12:50 AM by Matthias Neumair

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
Vinod A

Posts: 4
Nickname: vinodkalpa
Registered: Jun, 2005

Chat program doubt Posted: Jun 29, 2005 9:07 PM
Reply to this message Reply
Advertisement
Hi everybody,

I have written a simple chat program in java socket(interface is java swing).It contains mainly two classes. One ChatServer and the other MultiClients.Locally I could run the ChatServer in one machine and MultiClients from different machines(using LAN). It works fine.

Here is my problem. I wish to run the program throug internet instead of local network. How can I run my server program(ChatServer) in a remote server(apache tomcat or else)?
For LAN I can go to the server machine and run the server program by using the command >>java ChatServer. But How can I run the server program that is located in a remote server? And also the server program should run continuesly.

A user can download Client program (MultiClients) from a website
and install in his/her machine.

Please help me.
Thanking in advance.

From,
Vinod A.


Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Re: Chat program doubt Posted: Jul 1, 2005 4:06 AM
Reply to this message Reply
Log in remotely on the server and run the program.
You can use whatever remote client you want to use. If the server is a Windows machine you can use remote login.

Now DON'T ask how to do it without loggin in, because that is not possible if you're not a experienced hacker.

Assuming that you use Windows:
If you wan't to run the program all times, even if the user log's out, then create a scheduled task wich lanuches the program at windows start. Create a user account with the neccessary rights and use this one instead of the user you would use to log in.

Vinod A

Posts: 4
Nickname: vinodkalpa
Registered: Jun, 2005

Re: Chat program doubt Posted: Jul 1, 2005 10:31 PM
Reply to this message Reply
Shall I include a java program(not an applet) in scheduled task(windows) or cron job in (Linux)?

Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Re: Chat program doubt Posted: Jul 4, 2005 12:50 AM
Reply to this message Reply
Should work for the windows part, I don't know how to do it using Linux.

Flat View: This topic has 3 replies on 1 page
Topic: help needed for using Runtime.getRuntime().exec Previous Topic   Next Topic Topic: embedded jetty

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use