JMS Queues Configuration (Active MQ Server)

Download Apache ActiveMQ (ActiveMQ Artemis 2.17.0 (February 16, 2021))

https://www.apache.org/dyn/closer.cgi?filename=activemq/activemq-artemis/2.17.0/apache-artemis-2.17.0-bin.zip&action=download

Installing Apache Active MQ

Extract the Apache Active MQ Zip file to a specific Folder

Configure Apache Active MQ

  1. Navigate to bin folder (Ex: D:\Installations\apache-artemis-2.17.0\bin) and execute below command in command prompt to create a Broker: artemis create broker2
  2. In the same command prompt window enter the username and password. (Ex: admin)
  3. Similarly enter Y for universal access. The below code is displayed:

  1. Broker2 folder is created. Open broker.xml inside the broker2 folder created under the broker2/etc folder.
  2. Enter the below details inside the address tag:
 

<address name="ReplyToQueue">

<anycast>

<queue name="ReplyToQueue" />

</anycast>

</address>

<address name="RequestQueue">

<anycast>

<queue name="RequestQueue" />

</anycast>

</address>

  1. Start the broker created using the following command in command prompt under broker2/bin folder as below:

Example : D:\Installations\apache-artemis-2.17.0\bin\broker2\bin

artemis.cmd run

  1. Activemq home page can be accessed by clicking http://localhost:8161/console

Note: 8161 related port can be seen in same command prompt window where you have run the above command

  1. Login using the credentials used while creating the broker (Ex: username/password: admin/admin)
  1. Go to the IBSS Home page which is deployed on Tomee server by accessing the URL( http://HostName:port/IBSS).
  2. In the Home page from left side menu, expand IBSS/Nodes and click on Services node in the tree. On the right side in the Insbridge Connector Service section, click the Properties button and enter the following details:

  • dynamicQueues/jms/RequestQueue
  • dynamicQueus/jms/ReplyToQueue
  • ConnectionFactory

  • org.apache.activemq.jndi.ActiveMQInitialContextFactory
  • tcp://localhost:61616

  1. Save the properties, click the Test Connector Properties button. A prompt with a success message will be displayed if above configuration is correct, else, redo or crosscheck with respect to above steps.

 

 

 

 

 

Copyright © 2022, Oracle and/or its affiliates. All rights reserved. About Oracle Insurance| Customer Support