Search code examples
jakarta-eeglassfish-3

Deploy Application on Glassfish3+ programmatically


I have a use case that requires me to control the deployment (amongst other things) of an application on a Glassfish server from within an application.

Is it possible to use one application on a glassfish server to deploy and control other applications on the same glassfish server?


Solution

  • While glassfish can be started stand-alone, it can also be embedded into your own application (don't think Java EE here, but simple (or not so simple) Java app).

    You could define a set of management APIs, startup and configure GlassFish, and manage that glassfish instance via those APIs. Exposing your APIs to applications running under glassfish should be feasible as well.