JMS Queues Setup for the IBSS deployed in Tomee 8.0.6

Download Apache ActiveMQ (ActiveMQ Artemis 2.17.0)

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 the 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.
  4. The below image is displayed:

  1. A broker2 folder is created. Open broker.xml inside the broker2 folder 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

artemis.cmd run

  1. In case of no errors, the Home page activity can be viewed for Activemq by clicking the below URL:

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)
  2. Now go to the IBSS Home page which is deployed on TomEE server by accessing the URL ( http://HostName:port/IBSS).
  3. In the Home page from left side menu, expand IBSS/Nodes and click on Services node in the tree . On the right side , see 'Insbridge Connector Service' section wherein on click of Properties button, a pop-up window will be opened. In that window please enter the below details:

  • dynamicQueues/jms/RequestQueue
  • dynamicQueues/jms/ReplyToQueue
  • ConnectionFactory
  • org.apache.activemq.jndi.ActiveMQInitialContextFactory
  • tcp://localhost:61616

First save the properties and then click Test Connector Properties button. A prompt with a success message will be displayed if above configuration is properly done, if not, need to redo or crosscheck with respect to above steps.