I run the messenger server in a standalone way. and I startup the server by running the shell(startup.sh).
Now I want to start and stop the server from my another web apps in weblogic server. As you known, I can start the server by running the shell in weblogic server , but How can I shutdown the messenger server in the weblogic server.
Deploying jive Messenger as a war file is not enough for me. Because My app server doesn’'t support JDK5.0, I had to run the jive messenger in the standalone way.
Now I send a customized “Shutdown” IQ Message from the web application to the server. and then the server will “close” itself based on the “special IQ Message”. I wonder whether the workaround is correct or not?
Ahh, I gotcha. One JEP that might work well for this is JEP-0050 (ad-hoc commands). Or, you could do something simpler such as a custom IQ like you suggest. You could create a simple plugin that listened for the IQ as a component – maybe with a password.