We set up remote queues in WMQ and just send messages to the local
side of the remote queue and let WMQ do the rest.  Would that work for
you?

On Thu, Aug 9, 2012 at 3:45 AM, Caa_man <c...@acs-it.ru> wrote:
> Hello!
>
> I`d like to send message to the remote queue.
>
> I have component (that is local manager):
>
>     <bean id="wmq" class="org.apache.camel.component.jms.JmsComponent">
>         <property name="connectionFactory">
>             <bean class="com.ibm.mq.jms.MQConnectionFactory">
>                 <property name="transportType" value="1"/>
>                 <property name="hostName" value="localhost"/>
>                 <property name="port" value="1423"/>
>                 <property name="queueManager" value="LOCAL_QM"/>
>             </bean>
>         </property>
>         <property name="concurrentConsumers" value="5"/>
>         <property name="maxConcurrentConsumers" value="10"/>
>     </bean>
>
> and send message using transport string like this: "wmq:queue:LOCAL_QUEUE".
>
> Where can I specify remote queue manager and remote queue?
> ___________________________________
> local queue manager: LOCAL_QM
> local queue: LOCAL_QUEUE  (transmition queue)
> remote queue manager: REMOTE_QM (located on another server)
> remote queue: REMOTE_QUEUE
> ___________________________________
>
> When we use simple jms without camel, we create MQConnectionFactory with
> connection to local queue manager. When we need to send message to remote
> queue on remote manager, we create object Destination with properties
> "BaseQueueManagerName" and "BaseQueueName" with values of remote queue
> manager and remote queue, and send messages via connection factory on this
> destination.
>
> public Destination getDestination() throws JMSException {
>             MQQueue mq = new MQQueue();
>             mq.setBaseQueueName(remoteQueue);
>             mq.setPersistence(1);
>             mq.setBaseQueueManagerName(remoteQueueManager);
>             mq.setTargetClient(JMSC.MQJMS_CLIENT_NONJMS_MQ);
>             return mq;
>       }
>
> How can we fill BaseQueueManagerName property of Destination, created inside
> of Camel Jms component?
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Sending-to-remote-WMQ-queue-tp5717052.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to