I am trying to put messages on a REMOTE
queue using XMS versoin 9.1. The MQ server was upgraded to 9.1 as well, but my messages aren't making it to the remote server.
var cf = factoryFactory.CreateConnectionFactory();
cf.SetIntProperty(XMSC.WMQ_CONNECTION_MODE, XMSC.WMQ_CM_CLIENT);
cf.SetStringProperty(XMSC.WMQ_HOST_NAME, _host);
cf.SetIntProperty(XMSC.WMQ_PORT, _port);
cf.SetStringProperty(XMSC.WMQ_CHANNEL, _channel);
cf.SetIntProperty(XMSC.WMQ_CLIENT_RECONNECT_OPTIONS, XMSC.WMQ_CLIENT_RECONNECT_Q_MGR);
cf.SetStringProperty(XMSC.WMQ_QUEUE_MANAGER, _managerName);
_connection = cf.CreateConnection();
_session = _connection.CreateSession(false, AcknowledgeMode.AutoAcknowledge);
in a different method...
var queue = _session.CreateQueue(queueName);
var producer = _session.CreateProducer(queue);
var msg = _session.CreateTextMessage(message);
producer.Send(msg);
I have been unable to find many examples.
Is there a property on the producer
that has to be set in order to write to remote queues?
Thanks in advance.