Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-4806

Do not deploy artifacts until subsystem MBeans are registered

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Won't Do
    • Minor
    • None
    • None
    • JMX, Server
    • None

    Description

      When the server starts up and begins to deploy artifacts, the subsystem MBeans are not yet available. Our application has implemented a ServletContextListener and is attempting to lookup attributes from a DataSource MBean (e.g. jboss.as:subsystem=datasources,xa-data-source=DefaultDS). This MBean is not available at the time the listener is called when the server is first starting up. Some time after the deployment has run, the MBean is available and can be queried.

      If the deployment is added after the server has already successfully started, the MBean can be queried successfully. I would imagine the deploy operation is done in parallel with the MBean registration, but I cannot find where the datasource subsystem MBean registration occurs.

      It is odd that the datasource exists but the datasources subsystem MBean is not yet available for querying.

      Attachments

        Activity

          People

            kkhan1@redhat.com Kabir Khan
            briehman_jira Brian Riehman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: