Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Erlang OTP supervising Java application

I have recently become familiar with Erlang/OTP technology and I would like to apply it to monitor and supervise Java applications in terms of:

  • detecting their availability
  • starting and stopping them

In other words I would like Java applications to be seen by Erlang OTP supervisor infrastructure as a regular Erlang apps that can be managed by those supervisors (sending heartbeats, stopping and starting on demand). Is it feasible? If yes, what tools do I have to use?

For simplification, let's assume that a Java application is a simple jar with Main class specified. Instrumenting/extending those applications is allowed.

like image 709
gregorej Avatar asked Dec 13 '10 14:12

gregorej


1 Answers

Unless there's an existing Erlang application that you need to use, I'd suggest using the Akka library, which is greatly influenced by OTP and will let you create supervisor hierarchies using just JVMs.

like image 147
Ben James Avatar answered Nov 09 '22 07:11

Ben James