Can you programmatically restart the j2ee app?

Does anyone know if it is possible to restart the J2EE application (from the application)? If so, how?

I would like this to be possible with the app-server-agnostic agnostic, if possible.

The application will run on different application servers - basically, regardless of what the client prefers.

If this cannot be done in the app-server-agnostic agnostic, then probably this is really not worth doing for my purposes. I can always just show a message informing the user about the need to restart the application manually.

+5
source share
3 answers

, . , , , , , , . , , "" . , , /. , , , Apache Tomcat BEA WebLogic, , .

+6

JMX, .

+3

I would suggest using servicewrapper to manage the application server, and then use its api methods to request a restart of the service. There will be some kind of configuration, and it's hard to see if this will work in your specific environment, but this is the only solution that I know of, even cross-server compatible.

+2
source

All Articles