title: How can I configure more than one MQ queue Manager and connection factory in weblogic 11 in a clustered environment
body: <p>So here is the question . I have an application running in weblogic 8 which is heavily dependent on JMS messages . The messages flow from a clustered MQ Server and the application which is in ejb 2 used to listen to directly in the MQ using configurations in the weblogic-ejb-jar.xml.  The MQ server has two Queue Managers and two different Connection Factory name for those managers .</p>
  
  <pre><code>    &lt;weblogic-enterprise-bean&gt;
      &lt;ejb-name&gt;MDB_QM1&lt;/ejb-name&gt;
      &lt;message-driven-descriptor&gt;
          &lt;destination-jndi-name&gt;QM1&lt;/destination-jndi-name&gt;
          &lt;initial-context-factory&gt;weblogic.jndi.WLInitialContextFactory&lt;/initial-context-factory&gt;
          &lt;connection-factory-jndi-name&gt;CF1&lt;/connection-factory-jndi-name&gt;
      &lt;/message-driven-descriptor&gt;
      &lt;/weblogic-enterprise-bean&gt;
      &lt;weblogic-enterprise-bean&gt;
  
      &lt;ejb-name&gt;MDB_QM2&lt;/ejb-name&gt;
      &lt;message-driven-descriptor&gt;
          &lt;destination-jndi-name&gt;QM2&lt;/destination-jndi-name&gt;
          &lt;initial-context-factory&gt;weblogic.jndi.WLInitialContextFactory&lt;/initial-context-factory&gt;
          &lt;connection-factory-jndi-name&gt;CF2&lt;/connection-factory-jndi-name&gt;
      &lt;/message-driven-descriptor&gt;        
      &lt;/weblogic-enterprise-bean&gt;
  </code></pre>
  
  <p>Now the application is to be migrated to weblogic 10.3 and the configurations has already been done in test for that  .ejb version has changed to 3 and they have used annotations in the mdbs for queue config and such .But the real problem is this ,the application used to listen to the MQ directly and now they have configured a bridge which will transfer the message from MQ to a internal queue and the mdb will listen to that queue . The source MQ queue config in weblogic bridge config has only one connection factory in there and I am not sure if its possible to configure multiple queue managers , connection factories etc in a single queue . But in production there will be multiple queue managers etc . </p>
  
  <p>I think its possible if I configure foreign servers for those queues then the clustering will be possible . But that will mean a huge change in the application and weblogic config also . So the ideal solution I am searching for is a way to connect to those multiple MQ queue managers with the existing bridge configuration. If its not possible , please suggest the next best thing . I am open to all ideas :)</p>
  
  <p>Thanks  </p>