Java application as service
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   RaviShankar_Karupalli
Posted On:   Wednesday, July 18, 2001 08:07 AM

Hi,

I want to run Java application as service on Linux . The time interval between each execution should be configurable. What are the solutions
for this. Thanks in advance.

Regards,
Ravi

Re: Java application as service

Posted By:   Andrew_Pelyukh  
Posted On:   Friday, July 27, 2001 01:56 AM

I recently used JDring class which does almost the same as cron does. You can find it with any search system.

Re: Java application as service

Posted By:   Nathan_Meyers  
Posted On:   Wednesday, July 18, 2001 01:16 PM

Sounds like you're describing a daemon, not a service. Here are a couple of ways to run daemons:



  • Launch it from a boot-time startup script. The application starts up and is responsible for scheduling its own resting and active periods. In this case, the application keeps running, but spends most of its time quiescent (such as in calls to Thread.sleep())


  • Create a crontab entry that runs the application at regular intervals.


About | Sitemap | Contact