Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java daemon deployment infrastructure

Is there any deployment platforms for Java daemons? We have glassfish, geronimo etc. 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?

like image 661
Denis Bazhenov Avatar asked Sep 27 '10 05:09

Denis Bazhenov


2 Answers

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.

like image 99
Ither Avatar answered Oct 24 '22 17:10

Ither


Creating a simple daemon process with Spring

like image 38
Aaron Saunders Avatar answered Oct 24 '22 17:10

Aaron Saunders