Forum Stats

  • 3,770,165 Users
  • 2,253,079 Discussions
  • 7,875,353 Comments

Discussions

JMS adapter for ActiveMQ Topic running on a remote agent

malikadeel
malikadeel Member Posts: 86 Red Ribbon
edited Dec 17, 2018 10:20PM in SOA Suite Discusssions

Have an ActiveMQ Topic running on a remote agent. Need to configure a JMS adapter in Oracle SOA 12c to subscribe to events on this ActiveMQ topic. The JMS adapter will be linked to a BPEL process via JMS adapter partner link. When a new message is published on AciveMQ, I want to pickup this message by the JMS adapter and invoke the BPEL process

Tagged:

Answers

  • vladodias
    vladodias Member Posts: 2,283 Gold Trophy
    edited Dec 16, 2018 11:48PM

    Hi mate,

    Have a look at Oracle Support - How to Pair WebLogic Server with Apache ActiveMQ Server (Doc ID 1343654.1)

    Configuration to be done on ActiveMQ side

    1. Start ActiveMQ using the command line interface. Navigate to the ActiveMQ installation/bin directory and run activemq. Once ActiveMQ is started successfully, you will see this message on the command window:
      Successfully connected to tcp://localhost:61616
    2. Create ActiveMQ Queues on the link:
      http://localhost:8161/admin/ ==>This is the ActiveMQ console

    Configuration to be done on the Oracle WebLogic Server side

    1. Please set below ActiveMQ jars in the WebLogic Server classpath:
      activeio-core-3.1.2.jar
      activemq-console-5.4.2.jar
      activemq-core-5.4.2.jar
      activemq-jaas-5.4.2.jar
      activemq-web-5.4.2.jar
      geronimo-j2ee-management_1.1_spec-1.0.1.jar
      geronimo-jms_1.1_spec-1.1.1.jar
    2. Create a JMS module and target it to the WebLogic Server/cluster.
    3. Now create a Foreign JMS server using the following attributes# Go to Services -> Messaging -> JMS Modules -> SystemModule-0 -> ForeignServer-0
      • JNDI Initial Context Factory: org.apache.activemq.jndi.ActiveMQInitialContextFactory
      • JNDI Connection URL: tcp://localhost:61616 (this is the URL where Apache ActiveMQ is located)
    4. Now click on the Destinations tab and set the following attributes:
      • Local JNDI Name: testActiveMQconn-destination
      • Remote JNDI Name: ActiveQ (The queue name should be the name of the queue created on the ActiveMQ side)
    5. Now click on the Connection Factories tab and set the following attributes:
      • Local JNDI Name: XAConnectionFactory
      • Remote JNDI Name:  (This should be the name of the connection factory created on the ActiveMQ side)

    Cheers,

    Vlad

  • malikadeel
    malikadeel Member Posts: 86 Red Ribbon
    edited Dec 17, 2018 8:42AM

    Can You Please Share Some More details can I Invoke BPEL Process via JMS Adapter or Is this Enough Setup to Subscribe the Events Active MQ Topic THanks Adeel

  • vladodias
    vladodias Member Posts: 2,283 Gold Trophy
    edited Dec 17, 2018 8:28PM

    Hi Adeel,

    Once you have the Foreign JMS configured in Weblogic, you subscribe to it with a JMS adapter the same way you would as if it as a native weblogic JMS...

    Hope this helps...

    Cheers,

    Vlad

  • malikadeel
    malikadeel Member Posts: 86 Red Ribbon
    edited Dec 17, 2018 10:20PM

    Hi Vlad Thanks for reply can you please share some document to Configured the Foreign JMS in Weblogic or some further details as per your last reply Thanks Adeel