• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

starting & stopping j2ee server thro MBeans

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
We don't have time for this. We've gotta save the moon! Or check this out:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic