c# - XMS.NET hanging indefinitely on factory.CreateConnection("username", null); -
i trying connect existing jms queue .net client. know queue working, browsed using ibm mq explorer.
in following code, call factory.createconnection keeps hanging - not jump next line, in not show error message. doesnt consume cpu.
are there options should try working (or @ least make show me error message of kind)?
private static iconnectionfactory getconnectionfactory() { var factoryfactory = xmsfactoryfactory.getinstance(xmsc.ct_wmq); var cf = factoryfactory.createconnectionfactory(); cf.setstringproperty(xmsc.wmq_host_name, "server address"); cf.setintproperty(xmsc.wmq_port, portnumber); cf.setstringproperty(xmsc.wmq_channel, "channelname"); cf.setintproperty(xmsc.wmq_connection_mode, xmsc.wmq_cm_client); cf.setstringproperty(xmsc.wmq_queue_manager, "queuemanager"); cf.setintproperty(xmsc.wmq_broker_version, xmsc.wmq_broker_unspecified); return (cf); }
the main method has following:
var factory = getconnectionfactory(); var connection = factory.createconnection("username", null);
i don't see problem code, tested mq v8 , works fine. suggest do:
1) xms can run in unmanaged mode also. change
cf.setintproperty(xmsc.wmq_connection_mode, xmsc.wmq_cm_client);
to
cf.setintproperty(xmsc.wmq_connection_mode, xmsc.wmq_cm_client_unmanaged)
and see if helps.
2) when call hangs, break debug , see call stack determine point of hang. waiting on system event if no cpu being consumed.
3) open pmr ibm.
Comments
Post a Comment