Results 1 to 5 of 5
  1. #1
    anilkumar832 is offline Member
    Join Date
    Jan 2009
    Posts
    1
    Rep Power
    0

    Default System as a server

    I make a program in swings for lan chat.
    It is working fine but in a single pc i have to open more than one CMD and run
    the Program.
    But i want to ren this program on very system in Lan
    for this i have to make a system as aserver becouse without server program client side chat is not going to work
    So any buddy Pls help me to make a system like a server.


    Mail me on (anilkumar832@gmail.com)

    Thanks

  2. #2
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    First, servers don't typically have a user interface.

    You will have to accept connections and then hand them off to worker threads.

    I assume the main class already has a loop to allow it to run indefinitely. After you get the basics working, you will need to add error recovery and resource management.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    I think it's depends Steve. Most of the server application I've develop have a user interface, just to handling clients behavior. Again, it's depends on the implementation we have to do.

    @anil, at the time how your application is works if you don't have a server?

  4. #4
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    I see your point. A lot of my servers run either as a Windows service or as a daemon, so no one needs to be logged on for the server to run.

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Yep, that's the major advantage we have. Actually it's really helpful to work on with with. One of my application(Actually written in C++) use the command prompt as the UI. So there are lots of ways to work on with.

Similar Threads

  1. smtp server configuration with jboss server
    By vilas_patil in forum Java Servlet
    Replies: 0
    Last Post: 01-05-2009, 01:18 PM
  2. Replies: 0
    Last Post: 09-18-2008, 05:07 PM
  3. Does any file in an FTP server ends up in an HTTP server?
    By islamfunny in forum CLDC and MIDP
    Replies: 4
    Last Post: 08-15-2008, 04:30 PM
  4. Replies: 2
    Last Post: 07-15-2008, 06:11 PM
  5. One server to another server redirection
    By chaudhuri_abhi in forum Java Servlet
    Replies: 1
    Last Post: 02-11-2008, 07:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •