Hi,
Did anyone already manage to connect to a local MQManager via bindings JMS
MQ under Java program ?
I receive that error (that means "manager not available for connection") on
createQueueConnection() method :
MQJE001: Completion Code 2, Reason 2059
caught javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager
for 'MQTSWAS'
subexception: com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason
2059
My code follows
************
MQQueueConnectionFactory factory = new MQQueueConnectionFactory()
try {
factory.setQueueManager("MQTSWAS");
factory.setChannel("TSWAS01");
factory.setPort(1414);
factory.setTransportType(JMSC.MQJMS_TP_BINDINGS_MQ);
connection = factory.createQueueConnection();
...
************
But if I try the tool provided with MQManager (/usr/mqm/samp/bin/amqsget
TSWAS.IN.01 MQTSWAS) : it works fine.
Could anyone help me ?
> - S�bastien Noel -
>
---------------------
Un courrier �lectronique n'engage pas son �metteur. Tout message susceptible de
comporter un engagement doit �tre confirm� par un �crit d�ment sign�.
An electronic message is not binding on its sender. Any message referring to a binding
engagement must be confirmed in writing and duly signed.
Ein elektronischer Brief bzw. eine elektronische Nachricht ist f�r den Absender nicht
verbindlich. Jede Nachricht, welche eine Verpflichtung beinhaltet, mu� schriftlich
best�tigt und ordnungsgem�� unterzeichnet werden.
---------------------