JMS Queues Configuration (Active MQ Server)
Download Apache ActiveMQ (ActiveMQ Artemis 2.17.0 (February 16, 2021))
Installing Apache Active MQ
Extract the Apache Active MQ Zip file to a specific Folder
Configure Apache Active MQ
- 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
- In the same command prompt window enter the username and password. (Ex: admin)
- Similarly enter Y for universal access. The below code is displayed:
- Broker2 folder is created. Open broker.xml inside the broker2 folder created under the broker2/etc folder.
- 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>
- 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
- 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
- Login using the credentials used while creating the broker (Ex: username/password: admin/admin)
- Go to the IBSS Home page which is deployed on Tomee server by accessing the URL( http://HostName:port/IBSS).
- 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
- 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.