|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Remote |
« View previous topic :: View next topic » |
Author |
Message
|
TRANSPORTATOR |
Posted: Mon Aug 28, 2006 12:49 pm Post subject: Remote |
|
|
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 |
|
 |
jefflowrey |
Posted: Mon Aug 28, 2006 2:16 pm Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Mon Aug 28, 2006 3:16 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|