I would like to confirm if the following configuration is the right way to approach.
We have a jboss-as7 hosting a bunch of MDBs.
We would like to deploy the queue to a centralized queue infrastructure that will be up 24/7.
So the plan is to configure the queue on another jboss-as7 instance or jboss-soa-530 instance.
1) Can we configure the MDBs to do a remote lookup of the queue using the RemoteConnectionFactory
2) Should we configure a jms bridge between the 2 servers and MDB should always read off the local queue
You can't configure an MDB to use a connection factory. However, you use activation configuration properties on the MDB to configure where it will connect which allows you to essentially accomplish the same goal. Check the documentation for more info. There are also MDB examples shipped with HornetQ that demonstrate how to do this.