1 Reply Latest reply on Jun 17, 2015 6:05 AM by Adam A R

    MBean Subsystem dependencies and JBoss shutdown

    Claus P Newbie

      Hello community,

       

      I've got a mbean which depends on messaging subsystem because it uses some topics.

      When the (jboss.as.7.1.1) server starts everything is fine. 

      If the mbean "stop"  operation is called via JConsole all resources (like TopicConnection, TopicSession) could be disposed successful.

       

      If the server will be stopped (not terminated!) the messaging subsystem seems to be closed before the mbean "stop" operation has been called.

      I tried to build up a dependency to the messaging subsystem as I thought it might will stop the mbean first:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <server xmlns="urn:jboss:service:7.0"

            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

            xsi:schemaLocation="urn:jboss:service:7.0 jboss-service_7_0.xsd">

          <mbean

              code="com.acme.SampleMBean"

              name="Sample:service=Interface0">

              <depends>jboss.as:subsystem=messaging</depends>

          </mbean>

      </server>

       

      but this I got this error:

       

      JBAS014775:New missing/unsatisfied dependencies:
        service jboss.mbean.service."jboss.as:subsystem=messaging".create (missing) dependents: [service jboss.mbean.service.Sample:service=Interface0.create]
        service jboss.mbean.service."jboss.as:subsystem=messaging".start (missing) dependents: [service jboss.mbean.service.Sample:service=Interface0.start]

       

      Any clues?

      Thanx^^