IC5Notice: We have upgraded developerWorks Community to the latest version of IBM Connections. For more information, read our upgrade FAQ.
Topic
  • 1 reply
  • Latest Post - ‏2008-04-21T05:15:41Z by SystemAdmin
arul_anand_2000@yahoo.com
1 Post

Pinned topic Running the Java program as service.

‏2008-04-03T00:48:36Z |
Hi,

I want to create have java program, which runs continously. This would hit check a table in Database for any new records and if there is anything it would post a message to another service. It would keep track of how many messages were posted and how many were completed at any point of time.I should have the ability to stop this service. When a stop sequence is initiated, it should wait till all the messages are processed and shutdown. I am looking for inputs on how to invoke the java program as service and the second part (stopping the service). I dont want to Java wrapper service or commons daemon api. I am on JDK 1.4.2

Thanks in Advance.

Regards,
Arul.
Updated on 2008-04-21T05:15:41Z at 2008-04-21T05:15:41Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    757 Posts

    Re: Running the Java program as service.

    ‏2008-04-21T05:15:41Z  
    I think if it's a Windows server, your pretty much stuck with a wrapper or application container of some sort.