• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

starting & stopping j2ee server thro MBeans

Sathvathsan Sampath
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thought this might be a more appropriate forum to post this.

I am new to JMX. One of the many requirements is to start and stop our J2EE application deployed in a J2EE server. These operations need to be exposed as MBeans [say startServer() & stopServer() ].
This is what I think -

(1) A j2ee server can host more than one application (deploy multiple ears). We cannot start and stop a single application in isolation. Therefore, it amounts to killing the j2ee server process and starting it again. This would mean invoking appropriate startup & shutdown script provided by the j2ee vendor. In other words, the requirement is to start and stop an application server and not a single application. True/False?

(2) If (1) is true, then the Mbean to do that must reside in an agent outside the J2EE server and that in turn invoke vendor specific scripts to do that. True/False?
If true, then maybe a servlet could create an agent (another process !?!) and attach appropriate adapters/connectors to it. Somehow, I find this weird to do this way.
I glanced through JSR 77 and think it might not be relevant for this. I'd really be grateful if I can get some guidance on this.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic