How would I go about running a server application in Java.

This is a discussion on How would I go about running a server application in Java. within the Tech Board forums, part of the Community Boards category; Let's say I have a server application that listens to incoming connections via sockets to the application. I want this ...

  1. #1
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901

    How would I go about running a server application in Java.

    Let's say I have a server application that listens to incoming connections via sockets to the application. I want this program to be able to be started and stopped remotely. What are the technologies I need to do this with. I was reading on JSP but I don't really need to generate HTML I don't think, as it will just be a black box sort of thing that clients will connect to and be provided services.

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Do you want to daemonize a Java application? The Jakarta Commons contain a library to help with this: Commons Daemon.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    sounds scary, but it seems to be what I'm looking for. What I'm really asking is how can a client application remotely start a java executable .jar file. Let's say I have an administration program that shuts down the server/application, and subsequently the program shuts down all sockets and waits for all service threads to finish, and then finally exit. How would I do the opposite and have the administrator start the jar file. Where would that request go?

    Edit: NM, last paragraph -_-

    I would post on the javaranch but they don't allow usernames like normal forums so I made one "real-sounding" name and forgot and don't have access to my e-mail to find it out
    Last edited by indigo0086; 06-18-2008 at 08:46 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Running two UDP server simultaneously using select()
    By PiJ in forum Networking/Device Communication
    Replies: 15
    Last Post: 01-31-2008, 10:49 AM
  2. Server Architecture
    By coder8137 in forum Networking/Device Communication
    Replies: 2
    Last Post: 01-29-2008, 11:21 PM
  3. Client application having problem receiving from server side?
    By dp_76 in forum Networking/Device Communication
    Replies: 2
    Last Post: 08-04-2005, 03:58 PM
  4. error running application
    By somesh in forum Tech Board
    Replies: 4
    Last Post: 06-25-2003, 10:50 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21