This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed. Find sources: "Commons Daemon" – news ·newspapers ·books ·scholar ·JSTOR(June 2023) (Learn how and when to remove this message) |
| Commons Daemon | |
|---|---|
| Developer | Apache Software Foundation |
| Stable release | |
| Repository | |
| Written in | Java,C |
| Operating system | Cross-platform |
| Type | Library |
| License | Apache License 2.0 |
| Website | commons |
Commons Daemon, formerly known asJSVC, is aJavasoftware library belonging to theApacheCommons Project.
Daemon provides a portable means of starting and stopping aJava Virtual Machine (JVM) that is running server-side applications. Such applications often have additional requirements compared to client-side applications. For example, the servlet containerTomcat 4 would need to serialize sessions and shutdown web applications before the JVM process terminates.
Daemon comprises 2 parts: a native library written inC that interfaces with the operating system, and the library that provides the Daemon API, written in Java.
There are two ways to use Commons Daemon: by implementing the daemon interface or by calling a class that provides the required methods for daemon. For example, Tomcat-4.1.x uses the daemon interface and Tomcat-5.0.x provides a class whose methods are called by JSVC directly.