Results 1 to 5 of 5
  1. #1
    pcman312 is offline Member
    Join Date
    Dec 2010
    Posts
    8
    Rep Power
    0

    Default Creating CLI for java daemon

    I have a java daemon that is running constantly. It periodically gets data from other sources and process them autonomously. I would like to create a command line interface for the application that I can start up at any time while the daemon is running. I'd prefer to accomplish this without spawning a new JVM if possible.

    I do have some ideas in mind, but I wanted to get some other opinions too.

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,561
    Rep Power
    25

    Default Re: Creating CLI for java daemon

    Put an icon in the System tray and use R-C on it have it prompt for input.

  3. #3
    pcman312 is offline Member
    Join Date
    Dec 2010
    Posts
    8
    Rep Power
    0

    Default Re: Creating CLI for java daemon

    Quote Originally Posted by Norm View Post
    Put an icon in the System tray and use R-C on it have it prompt for input.
    I should have mentioned: the daemon runs on a linux system with no GUI interface. I want to make the CLI so it runs either as a part of the daemon that I can 'awaken' (for lack of a better term) or as a separate process that connects to the daemon.
    Last edited by pcman312; 02-11-2012 at 03:05 AM.

  4. #4
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,561
    Rep Power
    25

    Default Re: Creating CLI for java daemon

    No ideas for linux without a GUI, other than a separate program and sockets.

  5. #5
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,651
    Blog Entries
    7
    Rep Power
    21

    Default Re: Creating CLI for java daemon

    Maybe BeanShell is an option ... (Google is your friend).

    kind regards,

    Jos
    Last edited by JosAH; 02-11-2012 at 12:59 PM.
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Replies: 9
    Last Post: 07-29-2011, 02:18 PM
  2. Java as Linux daemon
    By greengold in forum New To Java
    Replies: 3
    Last Post: 11-02-2010, 02:17 PM
  3. Timer won't execute untill daemon thread yields
    By dsollen in forum Threads and Synchronization
    Replies: 1
    Last Post: 12-24-2009, 07:17 AM
  4. [SOLVED] should I run my Timer as a daemon?
    By Goseph in forum Threads and Synchronization
    Replies: 7
    Last Post: 02-16-2009, 10:22 AM
  5. Multithreaded daemon? High level help needed.
    By y0y in forum New To Java
    Replies: 4
    Last Post: 02-05-2009, 06:06 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
  •