This content has been marked as final. Show 2 replies
- Deploy ResourceAdapter on local server which is configured to connect to the remote ActiveMQ server. Easier.
- Lookup ConnectionFactory from remote JNDI - possible if that ActiveMQ server exposes it outside the VM. Create a named CDI producer for the ConnectionFactory like "@Produces @Named("remoteConnectionFactory")" and look it up from remote JNDI server in the producer method.
- Enable ActiveMQ on local server as well and build a cluster with remote server.
You may want to ask in ActiveMQ community for more details.
Thanks so much for the response.
We ended up with another option- creating a JMS bridge between 2 different flavors of MQ.(AMQ-WMQ). It is working very nicely till now.