Java daemon deployment infrastructure
Is there any deployment platforms for Java daemons? We have glassfish, geronimo et开发者_如何学Pythonc. for web-application deployment, but if I have simple Spring based application which is processing messages from ActiveMQ or something like that. Where I should deploy that?
You probably are looking for something like Java Service Wrapper. I used it a couple of years ago for a group of services that needed a watchdog and start, stop and restart operations. You can do that and a few things more:
- Run a Java application as a Windows Service or Unix Daemon: makes it possible to install a Java Application as a Windows Service or a daemon process on Unix systems.
- Standard, Out of the Box Scripting: provides scripts for run on Windows and Unix
- On Demand Restarts: Your application can request a restart of their own JVM
- Flexible Configuration: Configuration for JVM and application can be centralized in a text file.
- Logging: While the Java Service Wrapper does not attempt to replace any Logging Tools available, it does provide a number of properties to configure how "stdout" and "stderr" output to the JVM console is handled. This output can be logged to any combination of the console, a file, or the "Event Log" (Windows) or "syslog" (Unix).
If you build your project with Maven, there is a Application Assembler Maven Plugin that you can use.
Creating a simple daemon process with Spring
精彩评论