Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-543

Cannot send JMS message to external ActiveMQ server when configured via ironjacamar

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 1.0.0.Final
    • Fix Version/s: 2016.10.0
    • Component/s: None
    • Labels:
      None
    • Sprint:
      2016.10
    • Steps to Reproduce:
      Hide

      1) Checkout https://github.com/thomasdarimont/wildfly-swarm-example-edff
      2) open wildfly-swarm-example-edff in an ide
      3) start local activemq (activemq -console)
      4) run the Main class
      5) send a request via curl:

      curl -v -H "Content-Type: application/json" -d "{\"name\":\"test\"}" -X POST http://localhost:8080/edff/api/client/
      

      6) -> no queue is created on the "other" activemq server

      Show
      1) Checkout https://github.com/thomasdarimont/wildfly-swarm-example-edff 2) open wildfly-swarm-example-edff in an ide 3) start local activemq (activemq -console) 4) run the Main class 5) send a request via curl: curl -v -H "Content-Type: application/json" -d "{\" name\ ":\" test\ "}" -X POST http: //localhost:8080/edff/api/client/ 6) -> no queue is created on the "other" activemq server

      Description

      I'm trying to configure a wf swarm app in such a way that it sends JMS messages to an external ActiveMQ server via an embedded activemq-rar that is configured via ironjacamar.
      when I start the application in an IDE like intellij and try to create a new client via curl then I'd expect to see a new queue created on the (local) activemq server but that's not the case.

      It seems that the MessagingFraction is creating an own (internal) ActiveMQ message broker
      which probably supersedes my resource adapter - I probably did something wrong but I read all the docks I could find so perhaps there is at least something missing in that regard...

      ...
      2016-07-05 00:27:53,147 INFO  [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 39) AMQ221000: live Message Broker is starting with configuration Broker Configuration (clustered=false,journalDirectory=/tmp/wildfly-self-contained8810334072071990447.d/activemq/journal,bindingsDirectory=/tmp/wildfly-self-contained8810334072071990447.d/activemq/bindings,largeMessagesDirectory=/tmp/wildfly-self-contained8810334072071990447.d/activemq/largemessages,pagingDirectory=/tmp/wildfly-self-contained8810334072071990447.d/activemq/paging)
      2016-07-05 00:27:53,167 INFO  [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 39) AMQ221013: Using NIO Journal
      2016-07-05 00:27:53,261 INFO  [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 39) AMQ221043: Protocol module found: [artemis-server]. Adding protocol support for: CORE
      2016-07-05 00:27:53,453 INFO  [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 39) AMQ221007: Server is now live
      2016-07-05 00:27:53,454 INFO  [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 39) AMQ221001: Apache ActiveMQ Artemis Message Broker version 1.1.0.wildfly-011 [nodeID=8c555aca-4236-11e6-8b69-7d8a4c92225d] 
      2016-07-05 00:27:53,456 INFO  [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 39) AMQ221003: trying to deploy queue jms.queue.edff/EventsQueue
      2016-07-05 00:27:53,525 INFO  [org.wildfly.extension.messaging-activemq] (ServerService Thread Pool -- 40) WFLYMSGAMQ0002: Bound messaging object to jndi name java:/ConnectionFactory
      2016-07-05 00:27:53,555 INFO  [org.jboss.as.connector.deployment] (MSC service thread 1-4) WFLYJCA0007: Registered connection factory java:/DefaultJMSConnectionFactory
      
      2016-07-05 00:27:53,525 INFO  [org.wildfly.extension.messaging-activemq] (ServerService Thread Pool -- 40) WFLYMSGAMQ0002: Bound messaging object to jndi name java:/ConnectionFactory
      2016-07-05 00:27:53,555 INFO  [org.jboss.as.connector.deployment] (MSC service thread 1-4) WFLYJCA0007: Registered connection factory java:/DefaultJMSConnectionFactory
      2016-07-05 00:27:53,603 INFO  [org.apache.activemq.artemis.ra] (MSC service thread 1-4) Resource adaptor started
      ...
      

      after that I see the deployment of the resource adapter

      2016-07-05 00:27:54,742 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0027: Starting deployment of "activemq-ra.rar" (runtime-name: "activemq-ra.rar")
      2016-07-05 00:27:54,867 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) WFLYSRV0018: Deployment "deployment.activemq-ra.rar" is using a private module ("org.jboss.jts:main") which may be changed or removed in future versions without notice.
      2016-07-05 00:27:54,915 INFO  [org.jboss.as.server] (main) WFLYSRV0010: Deployed "activemq-ra.rar" (runtime-name : "activemq-ra.rar")
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bob.mcwhirter Bob McWhirter
                  Reporter:
                  tdarimont Thomas Darimont
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: