commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mladen Turk (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (DAEMON-180) Allow running basic applications as daemons
Date Wed, 20 Oct 2010 06:11:23 GMT

     [ https://issues.apache.org/jira/browse/DAEMON-180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mladen Turk resolved DAEMON-180.
--------------------------------

    Resolution: Fixed

Added support/DaemonWrapper implementing this feature.
There is a SampleApplication.java and SampleApplication.sh
inside examples directory showing the basics of this new approch

> Allow running basic applications as daemons
> -------------------------------------------
>
>                 Key: DAEMON-180
>                 URL: https://issues.apache.org/jira/browse/DAEMON-180
>             Project: Commons Daemon
>          Issue Type: New Feature
>          Components: Jsvc
>            Reporter: Mladen Turk
>
> Add new generic wrapper that would allow to run the standard application that do not
have required
> Daemon methods by using a special wrapper class.
> The wrapper class calls main method if the -start class is prefixed with ampersand.
> eg. @foo.bar.Application will call foo.bar.Application's main(String[] args) method instead
> trying to load the init(String[]) method.
> Stop method inside wrapper calls System.exit, so applications should have some
> mechanism (usually by using ShutdownHook) to perform a shutdown cleanup 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message