10 Replies Latest reply on Jun 15, 2005 4:57 AM by thl-mot

    MBean waiting for Webapp - Deployment

    jkressin

      Hi,

      I have a simple MBean which depends on a webapplication (some classes in WEB-INF/classes respectively). I want to use the depends - tag in the descriptor so that my MBean is deployed *after* the webapp has been deployed.
      I know how do this if an MBean depends on an EJB (found it here http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t= I do not know which value to put for the depends - tag if I want to wait for a webapp.
      I found three entries under jboss.web corresponding to my webapplication, but none of these values seem to work if I put it in the depends - tag, e.g.

      jboss.web:context=/jdotest-web,name=invoker,vhost=localhost

      (jdotest-web being the name of my app).

      The deployer gives me this error:
      [java] Cause: Incomplete Deployment listing:
      [java] Packages waiting for a deployer:
      [java]
      [java] Incompletely deployed packages:
      [java]
      [java] MBeans waiting for classes:
      [java]
      [java] MBeans waiting for other MBeans:
      [java] [ObjectName: configuration:name=ConfigTest
      [java] state: NOTYETINSTALLED
      [java] I Depend On:
      [java] Depends On Me: , ObjectName: configuration:name=ConfigTest
      [java] state: NOTYETINSTALLED
      [java] I Depend On:
      [java] Depends On Me: , ObjectName: configuration:name=ConfigTest
      [java] state: NOTYETINSTALLED
      [java] I Depend On:
      [java] Depends On Me: , ObjectName: configuration:name=ConfigTest
      [java] state: CONFIGURED
      [java] I Depend On: jboss.web:context=/jdotest-web,name=invoker,vhost=localhost
      (ConfigTest is the name of my MBean)

      How can I model the behaviour described above, an MBean depending / waiting on a particular webapp?

      Thanks very much for any hints,

      Jochen