title: "Channel not defined remotely" issue when connecting from camel to a WebSphere MQ server
body: <p>I have configured two servers by side, one Active MQ and one WebSphere MQ 8.0, in order to communicate each other I've configured an Apache Camel in the middle, which receives messages from Active MQ and send them to WebSphere. Right now Camel is able to receive messages from Active MQ server, but when it tries to send them to the WebSphere MQ it throws the error:</p>
  
  <blockquote>
    <p>Caused by: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2540;AMQ9204: Connection to host '10.0.0.122(1414)' rejected. [1=com.ibm.mq.jmqi.JmqiException[CC=2;RC=2540;AMQ9520: Channel not defined remotely. [3=channel.test]],3=10.0.0.122(1414),5=RemoteConnection.analyseErrorSegment]</p>
  </blockquote>
  
  <p>I am able to connect Camel to the WebSphere QueueManager with a user, but not the the channel that is created, the configuration for the camel side in order to connect to the WebSphere server is: </p>
  
  <pre><code>    &lt;bean id="weblogicConnectionFactory"
         class="com.ibm.mq.jms.MQConnectionFactory"&gt;
     &lt;property name="hostName" value="10.0.0.122"/&gt;
     &lt;property name="port" value="1414"/&gt;
     &lt;property name="queueManager" value="TESTQ"/&gt;
     &lt;property name="channel" value="channel.test"/&gt;
     &lt;property name="transportType" value="1"/&gt;
   &lt;/bean&gt;
  
   &lt;bean id="myProxyConnectionFactory" class="org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter"&gt;
     &lt;property name="targetConnectionFactory" ref="weblogicConnectionFactory"/&gt;
     &lt;property name="username" value="administrator"/&gt;
     &lt;property name="password" value="control123!"/&gt;
    &lt;/bean&gt;
  
   &lt;bean id="weblogicConfig"
         class="org.apache.camel.component.jms.JmsConfiguration"&gt;
     &lt;property name="connectionFactory" ref="weblogicConnectionFactory"/&gt;
     &lt;property name="concurrentConsumers" value="10"/&gt;
   &lt;/bean&gt;
  
   &lt;bean id="weblogic"
         class="org.apache.camel.component.jms.JmsComponent"&gt;
     &lt;property name="configuration" ref="weblogicConfig"/&gt;
   &lt;/bean&gt;
  </code></pre>
  
  <p>And the way that I've created the Server-Connection channel is by going to the WebSphere MQ Explorer, select queue manager, create new Server-Connection channel, set the appropiate username in the MCA User Field.</p>
  
  <p>As a suggestion of @shashi in his answer below I've run the command DIS CHANNEL() with the following output:</p>
  
  <pre><code>    1 : DIS CHANNEL('channel.test')
  AMQ8414: Display Channel details.
     CHANNEL(channel.test)                   CHLTYPE(SVRCONN)
     ALTDATE(2015-07-22)                     ALTTIME(00.16.25)
     COMPHDR(NONE)                           COMPMSG(NONE)
     DESCR( )                                DISCINT(0)
     HBINT(300)                              KAINT(AUTO)
     MAXINST(999999999)                      MAXINSTC(999999999)
     MAXMSGL(4194304)                        MCAUSER(mqm)
     MONCHL(QMGR)                            RCVDATA( )
     RCVEXIT( )                              SCYDATA( )
     SCYEXIT( )                              SENDDATA( )
     SENDEXIT( )                             SHARECNV(10)
     SSLCAUTH(REQUIRED)                      SSLCIPH( )
     SSLPEER( )                              TRPTYPE(TCP)
  </code></pre>
  
  <p>Any help will be really helpfull</p>
  
  <p>Thanks in advance</p>