ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Remote

Post new topic  Reply to topic
 Remote « View previous topic :: View next topic » 
Author Message
TRANSPORTATOR
PostPosted: Mon Aug 28, 2006 12:49 pm    Post subject: Remote Reply with quote

Apprentice

Joined: 04 May 2006
Posts: 27

COMPAÑEROS........

NECESITO ENVIAR UN MENSAJE A UN DOS COLAS.......

COMO LO PUEDO HACER .............

MQQueueManager qMgrs = new MQQueueManager("JAVAMQM");
// Conexion con el gestor de cola
int openOptions = MQC.MQOO_OUTPUT ; // Opciones de la cola que se se va abrir, con prefijo MQC

MQQueue MQ_QUEUE1 = qMgrs.accessQueue("QUEUE3.REQ",
openOptions, "QUEUE4.REQ", null, null ); // Especificar la cola que se va
abrir
MQQueue MQ_QUEUE2 = qMgrs.accessQueue("QUEUE4.REQ",
openOptions );


PUTMQ.mPut(qMgrs, MQ_QUEUE1); // llama al metodo mPut y Transfiere el mensaje a la cola


MQ_QUEUE1.close(); // Cierra la cola
Back to top
View user's profile Send private message MSN Messenger
jefflowrey
PostPosted: Mon Aug 28, 2006 2:16 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

MQEnvironment.hostname = hostname
MQEnvironmnet.port = port
MQEnvironment.channel = server connection channel name
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Aug 28, 2006 3:16 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Look at setting up a distribution list in your code.
API and the documentation are quite clear.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Remote
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.