Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-7938

Unable to connect pooled connectionFactory with camel-sjms and camel-sjms2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • fuse-7.1
    • fuse-7.0
    • Camel, Fuse EAP, Karaf
    • None
    • % %
    • Hide

      1. Start external AMQ-7 e.g.

      docker run --rm -ti -p 61617:61616 docker-registry.engineering.redhat.com/fuse-qe/jboss-amq-7:7.1.0
      

      2. Start Fuse on EAP
      3. Execute command to configure external pooledConnectionFactory for AMQ-7:

      mvn clean install -Ddeploy-rar.skip=false
      

      4. Wait for restarting EAP and execute command to deploy the application:

      mvn clean install -Pdeploy
      
      Show
      1. Start external AMQ-7 e.g. docker run --rm -ti -p 61617:61616 docker-registry.engineering.redhat.com/fuse-qe/jboss-amq-7:7.1.0 2. Start Fuse on EAP 3. Execute command to configure external pooledConnectionFactory for AMQ-7: mvn clean install -Ddeploy-rar.skip= false 4. Wait for restarting EAP and execute command to deploy the application: mvn clean install -Pdeploy

      Unable to connect pooledConnectionFactory configured in EAP with camel-sjms and camel-sjms2. The pooledConnectionFactory is configured according the instructions in EAP 7.1 documentation for connecting to external AMQ-7. To configure camel-sjms, I followed instruction in camel-sjms documentations Plugable Connection Resource Management. The instructions are same in FUSE 6.3 documentation and also in camel-sjms2. I attached reproducer. Not sure how to implement ConnectionResource interface in order to get it working.

      If I create my own connectionFactory instance, everything works. However, certification against AMQ-7 dictates EAP 7.1 documentation. So I think we shouldn't create our own instances of connectionFactory in EAP environment.

      Exception

      15:32:51,382 ERROR [org.apache.camel.component.sjms.SjmsConsumer] (MSC service thread 1-2) Unable to create the MessageConsumer: javax.jms.IllegalStateException: This method is not applicable inside the application server. See the J2EE spec, e.g. J2EE1.4 Section 6.6

      It also applies for karaf and pooledConnectionFactory created by karaf jms command.

              jnethert@redhat.com James Netherton
              vkasala@redhat.com Viliam Kasala
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: