Configuring JBoss 7 EAP with Remote Artemis ActiveMQ
Installing & Configuring Apache Artemis MQ
1. Download Apache Artemis MQ from this Link
2. Extract the apache-artemis-2.19.1-bin.zip file
3. open Command Prompt and Go to apache-artemis-2.19.1\bin folder and execute below commands for creating a node
C:\Temenos\T24\apache-artemis-2.19.1\bin>artemis.cmd create node1
Creating ActiveMQ Artemis instance at: C:\Temenos\T24\apache-artemis-2.19.1\bin\node1
--user:
Please provide the default username:
testnode1
--password: is mandatory with this configuration:
Please provide the default password:
testpass1
--allow-anonymous | --require-login:
Allow anonymous access?, valid values are Y,N,True,False
Y
Auto tuning journal ...
done! Your system can make 0.76 writes per millisecond, your journal-buffer-timeout will be 1324000
You can now start the broker by executing:
"C:\Temenos\T24\apache-artemis-2.19.1\bin\node1\bin\artemis" run
Or you can setup the broker as Windows service and run it in the background:
"C:\Temenos\T24\apache-artemis-2.19.1\bin\node1\bin\artemis-service.exe" install
"C:\Temenos\T24\apache-artemis-2.19.1\bin\node1\bin\artemis-service.exe" start
To stop the windows service:
"C:\Temenos\T24\apache-artemis-2.19.1\bin\node1\bin\artemis-service.exe" stop
To uninstall the windows service
"C:\Temenos\T24\apache-artemis-2.19.1\bin\node1\bin\artemis-service.exe" uninstall
C:\Temenos\T24\apache-artemis-2.19.1\bin>
4. Above create command creates a folder node1 under bin directory
5. Open Command Prompt and goto apache-artemis-2.19.1\bin\node1\bin directory and execute the below command to start the node1 instance
artemis.cmd run
6. It starts with an default port of 8161. Goto browser and try to access the link http://localhost:8161 which should display a similar screen as below.
Configuring JBoss 7 EAP
1. Download JBoss 7 EAP from JBoss Enterprise Application Platform Download | Red Hat Developer
2. Extract the Zip file
3. Goto jboss-eap-7.2\standalone\configuration and create new standalone-Artemis.xml file by taking a copy of standalone-full.xml
4. Perform below configurations to link the Apache ActiveMQ
- under the socket-binging-group, add the connector with any name and the hostname/port as highlighted below.
- Under the messaging subsytem, add the remote-connector and include the connector to the connectionFactory as shown below
5. Start the Jboss Server
Testing Connectivity
Browser is able to communicate with app-server view AMQ queues.