Uploaded image for project: 'Fuse JON plugins'
  1. Fuse JON plugins
  2. FUSEJON-135

Fuse plug-in is discovering ActiveMQ 6 installations as JBoss Fuse Container

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 7.5.1.redhat
    • Fix Version/s: None
    • Labels:
      None

      Description

      The AMQ plug-in does not discovery the JBoss AMQ server instance as ActiveMQ Server as one would expect. Instead, it is discovered as JBoss Fuse Container by the JBoss Fuse 6.x plug-in.

      This seems to be a result of the process query that is being used:

      <process-scan query="process|basename|match=^java.*,arg|-Dactivemq.home|match=.*"/>
      

      The AMQ server instance's command line does not include such a property by default.

      /usr/bin/java -server -Xms1G -Xmx1G -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass -Dcom.sun.management.jmxremote -Dkaraf.restart.jvm.supported=true -Djava.endorsed.dirs=/usr/lib/jvm/java-1.8.0-openjdk... -Djava.ext.dirs=/usr/lib/jvm/java-1.8.0-openjdk... -Dkaraf.instances=/opt/jboss/amq/jboss-a-mq-6.3.0.redhat-187/instances -Dkaraf.home=/opt/jboss/amq/jboss-a-mq-6.3.0.redhat-187 -Dkaraf.base=/opt/jboss/amq/jboss-a-mq-6.3.0.redhat-187 -Dkaraf.data=/opt/jboss/amq/jboss-a-mq-6.3.0.redhat-187/data -Dkaraf.etc=/opt/jboss/amq/jboss-a-mq-6.3.0.redhat-187/etc -Djava.io.tmpdir=/opt/jboss/amq/jboss-a-mq-6.3.0.redhat-187/data/tmp -Djava.util.logging.config.file=/opt/jboss/amq/jboss-a-mq-6.3.0.redhat-187/etc/java.util.logging.properties -Djavax.management.builder.initial=org.apache.karaf.management.boot.KarafMBeanServerBuilder -Dkaraf.startLocalConsole=false -Dkaraf.startRemoteShell=true -classpath /opt/jboss/amq/jboss-a-mq-6.3.0.redhat-187/lib/karaf-jaas-boot.jar:/opt/jboss/amq/jboss-a-mq-6.3.0.redhat-187/lib/karaf.jar:/opt/jboss/amq/jboss-a-mq-6.3.0.redhat-187/lib/karaf-jmx-boot.jar org.apache.karaf.main.Main
      

      However, it does contain the following arguments:

      • -Dkaraf.home
      • -Dkaraf.base
      • org.apache.karaf.main.Main

      Which happens to satisfy the process query for the JBoss Fuse Container server resource defined by the JBoss Fuse 6.x plug-in:

      <process-scan query="process|basename|match=^java.*,arg|-Dkaraf.home|match=.*,arg|-Dkaraf.base|match=.*,arg|*|match=org\.apache\.karaf\.(main|shell\.wrapper)\.Main"/>
      

      It is not clear if this intentional or a complete oversight.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dbokde Dhiraj Bokde
                Reporter:
                loleary Larry O'Leary
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: