4 Replies Latest reply on Feb 19, 2007 8:16 PM by Clayton Hicklin

    Retrieve ObjectName of webapp without id

    Clayton Hicklin Newbie

      Hi,
      I'm trying to write a very simple web page to monitor the status of some other services and web apps. I have no problem retrieving an ObjectName of the services using "domain.com:service=ServiceName", etc., but it appears that the only way to retrieve a reference to the web app is by knowing the id, i.e. "jboss.web.deployment:war=file.war,id=4328178775". The problem is that this id changes depending on where I'm deployed. Is there a way to retrieve this without the id, or is there a way to look up the id programatically? I've tried "jboss.web.deployment:war=file.war,id=*" and "jboss.web.deployment:war=file.war,*", neither work.

      Sorry if this is an easy one, I'm a little new to JMX. Thanks in advance!