Log into the ActiveMQ management console via the web browser.
View the queue that was created. A message should be visible.
Configuring a simple MQ message recipient
Log into the MQ server as any user.
Open a TCP port to listen for incoming connections:
while true ; do nc -l 8888 <<< "HTTP/1.1 200 OK\r\SUCCESS" ; done
NOTE: The above command will open a TCP port on 8888 and respond to TCP connections with the above string. This simulates a web server accepting requests from the Gateway.
Publishing the Inbound JMS service policy
Log into the Layer 7 Policy Manager as an administrative user.
Publish a new service policy.
Insert the "Route via HTTP" assertion.
Set the routing URL as "http://mqserver.example.com:8888"
Save and activate the policy.
Configuring the Inbound JMS Destination
Select "Manage JMS Destinations" from the "Tasks" menu.
Clone the previously created JMS destination.
Select the "General" tab.
Set the "Direction" as "Inbound."
Select the "Inbound Options" tab.
Check "Associate destination with published service (bypass resolution)."
Set the "Service name" to the newly created inbound JMS service policy.
Save the destination and close the dialog.
The simple MQ recipient created previously should then receive the message that was transmitted via `curl`.