Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • camel-activemq (CAMEL ON EAP DEPLOYMENT) not working as described

    Posted on

    Hi,

    the documentation for the ACTIVEMQ component [1] describes the possibility of a route deployed on EAP to connect to a remote A-MQ broker using the 'org.apache.activemq.ActiveMQConnectionFactory' in conjunction with 'org.apache.activemq.pool.PooledConnectionFactory'. But when you try this approach you end up facing some class loader issues. This happens because the camel modules configured by FuseOnEAP installer (I tested with Fuse 6.3 r3 on EAP 6.4.15) hides the activemq api. See modules/system/layers/fuse/org/apache/activemq/main/module.xml


    the hides the activemq client from the deployed camel application on EAP. On the other hand if you declares the camel-activemq dependencies on your pom.xml:

        
          org.apache.activemq
          activemq-client
          provided
        
        
          org.apache.activemq
          activemq-pool
          provided
        
    

    You will face some classloading conflicts:

        ... 35 more
    Caused by: java.lang.ClassCastException: org.apache.activemq.transport.discovery.DiscoveryTransportFactory cannot be cast to org.apache.activemq.transport.TransportFactory
        at org.apache.activemq.transport.TransportFactory.findTransportFactory(TransportFactory.java:179) [activemq-client-5.11.0.redhat-630262.jar:5.11.0.redhat-630262]
        ... 37 more
    

    So, the docs need to be clear about the right approach when connecting to a remote A-MQ broker from Camel Routes deployed on top of FuseOnEAP 6. I mean, via AMQ Resource Adapter or via Activemq client (remote protocols).

    [1] https://access.redhat.com/documentation/en-us/red_hat_jboss_fuse/6.3/html/apache_camel_component_reference/idu-activemq

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2025 Red Hat