﻿<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://developers.de/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Connecting to MQSeries with .NET</title><link />http://developers.de/blogs/damir_dobric/archive/2007/04/13/Connecting-to-MQSeries-with-.NET.aspx<description>By connecting to MQSeries withing a .NET application, first it has to be done is to install MQ Series client at the machine which will host the application. To do that, you can obtain for example the trial version of WebSphere MQ. During installation</description><dc:language>en</dc:language><generator>CommunityServer 2008 SP1 (Build: 30619.63)</generator><item><title>IBM MQSeries Accessing Issue from .NET | Search RounD</title><link />http://developers.de/blogs/damir_dobric/archive/2007/04/13/Connecting-to-MQSeries-with-.NET.aspx#912026<pubdate>Thu, 06 Mar 2014 23:31:58 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:912026</guid><dc:creator>IBM MQSeries Accessing Issue from .NET | Search RounD</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;IBM MQSeries Accessing Issue from .NET | Search RounD&lt;/p&gt;
&lt;img src="http://developers.de/aggbug.aspx?PostID=912026" width="1" height="1"&gt;</description></item><item><title>re: Connecting to MQSeries with .NET</title><link />http://developers.de/blogs/damir_dobric/archive/2007/04/13/Connecting-to-MQSeries-with-.NET.aspx#271263<pubdate>Fri, 03 Feb 2012 09:32:54 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:271263</guid><dc:creator>Nagaraj</dc:creator><description>&lt;p&gt;Scenario :&lt;/p&gt;
&lt;p&gt;Just supply the IP Address, port and queue name in the configuration URI &lt;/p&gt;
&lt;p&gt;uri=&amp;quot;wmq://123.123.123.123:2414/XYZ.CHANNEL?queue=M.X.IN?replyTo=M.X.REPLY&amp;quot;&lt;/p&gt;
&lt;p&gt;Note: No Queue manager name is specified the Uri&lt;/p&gt;
&lt;p&gt;Question:&lt;/p&gt;
&lt;p&gt;How to access the default queue manger in c# code, when the user doesn&amp;#39;t know about the queue manager name.&lt;/p&gt;
&lt;p&gt;Would be helpful if you can point out how to connect using c#.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=271263" width="1" height="1"&gt;</description></item><item><title>re: Connecting to MQSeries with .NET</title><link />http://developers.de/blogs/damir_dobric/archive/2007/04/13/Connecting-to-MQSeries-with-.NET.aspx#221100<pubdate>Thu, 03 Feb 2011 04:29:04 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:221100</guid><dc:creator>Vish</dc:creator><description>&lt;p&gt;I have tried in fail to create a server connection from .net code. According to the api on the QueueManager constructor only the name of queue manager is required and when I do that it throws a 2058 error while creating it. Any ideas ?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=221100" width="1" height="1"&gt;</description></item><item><title>re: Connecting to MQSeries with .NET</title><link />http://developers.de/blogs/damir_dobric/archive/2007/04/13/Connecting-to-MQSeries-with-.NET.aspx#28429<pubdate>Tue, 30 Nov 2010 07:19:33 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:28429</guid><dc:creator>Arvind </dc:creator><description>&lt;p&gt;Problem resolved after using newer version of “amqmdnet.dll” (1.0.0.3) &amp;nbsp;and creating the MQmanager object using Hash Table as shown in this article. &lt;/p&gt;
&lt;p&gt;The file cound be found in MQ client installation directory.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=28429" width="1" height="1"&gt;</description></item><item><title>re: Connecting to MQSeries with .NET</title><link />http://developers.de/blogs/damir_dobric/archive/2007/04/13/Connecting-to-MQSeries-with-.NET.aspx#28270<pubdate>Thu, 18 Nov 2010 08:49:17 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:28270</guid><dc:creator>Arvind C</dc:creator><description>&lt;p&gt;Hi &amp;nbsp;Damir ,&lt;/p&gt;
&lt;p&gt;I am using .net 1.1 to connect to MQ server. I have installed the client on which application is running.&lt;/p&gt;
&lt;p&gt;Everything works fine unless I change the default port in my code. I am not able to change the port number using the .net code.&lt;/p&gt;
&lt;p&gt; MQEnvironment.Port = 1000;&lt;/p&gt;
&lt;p&gt;No matter what port Number I give here it always trying to Connect default port(1414). I have checked my entire code I am not setting the port to 1414. &lt;/p&gt;
&lt;p&gt;Here is Log:&lt;/p&gt;
&lt;p&gt;Remote host &amp;#39;ServerName (XXX.XX.XXX.16) (1414)&amp;#39; not available, retry later. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;The attempt to allocate a conversation using TCP/IP to host &amp;#39;ServerName (XXX.XX.XXX.16) (1414) was not successful. &amp;nbsp;However the error may be a transitory one and it may be possible to successfully allocate a TCP/IP conversation later. &amp;nbsp;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=28270" width="1" height="1"&gt;</description></item><item><title>re: Connecting to MQSeries with .NET</title><link />http://developers.de/blogs/damir_dobric/archive/2007/04/13/Connecting-to-MQSeries-with-.NET.aspx#28269<pubdate>Thu, 18 Nov 2010 08:41:49 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:28269</guid><dc:creator>Arvind </dc:creator><description>&lt;p&gt;Hi &amp;nbsp;Damir ,&lt;/p&gt;
&lt;p&gt;I am using .net 1.1 to connect to MQ server. I have installed the client on which application is running.&lt;/p&gt;
&lt;p&gt;Everything works fine unless I change the default port in my code. I am not able to change the port number using the .net code.&lt;/p&gt;
&lt;p&gt; MQEnvironment.Port = 1000;&lt;/p&gt;
&lt;p&gt;No matter what port Number I give here it always trying to Connect default port(1414). I have checked my entire code I am not setting the port to 1414. &lt;/p&gt;
&lt;p&gt;Here is Log:&lt;/p&gt;
&lt;p&gt;Remote host &amp;#39;ServerName (XXX.XX.XXX.16) (1414)&amp;#39; not available, retry later. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;The attempt to allocate a conversation using TCP/IP to host &amp;#39;ServerName (XXX.XX.XXX.16) (1414) was not successful. &amp;nbsp;However the error may be a transitory one and it may be possible to successfully allocate a TCP/IP conversation later. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Try the connection again later. If the failure persists, record the error values and contact your systems &lt;/p&gt;
&lt;p&gt;administrator. The return code from TCP/IP is 10061 (X&amp;#39;274D&amp;#39;). The reason for the failure may be that this host cannot reach the destination host. It may also be possible that the listening program at host &amp;#39;ServerName (XXX.XX.XXX.16) (1414)&amp;#39; was not running. &amp;nbsp;If this is the case, perform the relevant operations to start the TCP/IP listening program, and try again.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=28269" width="1" height="1"&gt;</description></item><item><title>re: Connecting to MQSeries with .NET</title><link />http://developers.de/blogs/damir_dobric/archive/2007/04/13/Connecting-to-MQSeries-with-.NET.aspx#13008<pubdate>Mon, 05 Jul 2010 12:59:37 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:13008</guid><dc:creator>Deven</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am trying to connect to MQ with the help of AMQCLCHL.TAB file.&lt;/p&gt;
&lt;p&gt;Please let me know how to connect to MQ With XMS in C#.&lt;/p&gt;
&lt;p&gt;Thanks in advance..&lt;/p&gt;
&lt;p&gt;-deven&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=13008" width="1" height="1"&gt;</description></item><item><title>re: Connecting to MQSeries with .NET</title><link />http://developers.de/blogs/damir_dobric/archive/2007/04/13/Connecting-to-MQSeries-with-.NET.aspx#2833<pubdate>Wed, 24 Sep 2008 23:57:04 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:2833</guid><dc:creator>Armen Merikyan</dc:creator><description>&lt;p&gt;How can i get queue count so that i can process each msg &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=2833" width="1" height="1"&gt;</description></item><item><title>re: Connecting to MQSeries with .NET</title><link />http://developers.de/blogs/damir_dobric/archive/2007/04/13/Connecting-to-MQSeries-with-.NET.aspx#2618<pubdate>Tue, 05 Aug 2008 09:44:07 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:2618</guid><dc:creator>Vijay</dc:creator><description>&lt;p&gt;How to count all the messages in MQ-Series and get display that particular Message????&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=2618" width="1" height="1"&gt;</description></item><item><title>re: Connecting to MQSeries with .NET</title><link />http://developers.de/blogs/damir_dobric/archive/2007/04/13/Connecting-to-MQSeries-with-.NET.aspx#2029<pubdate>Wed, 25 Jun 2008 07:17:18 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:2029</guid><dc:creator>Damir Dobric</dc:creator><description>&lt;p&gt;The exception problem could be caused by incorrect installation of MQ-client.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=2029" width="1" height="1"&gt;</description></item><item><title>re: Connecting to MQSeries with .NET</title><link />http://developers.de/blogs/damir_dobric/archive/2007/04/13/Connecting-to-MQSeries-with-.NET.aspx#2028<pubdate>Wed, 25 Jun 2008 07:16:10 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:2028</guid><dc:creator>Damir Dobric</dc:creator><description>&lt;p&gt;Connecting example:&lt;/p&gt;
&lt;p&gt; MQQueueManager queueManager = new MQQueueManager(&amp;quot;QM_testmgr&amp;quot;, &amp;quot;mychannel&amp;quot;, &amp;quot;192.168.1.64&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MQQueue queue = queueManager.AccessQueue(&amp;quot;default&amp;quot;, MQC.MQOO_OUTPUT + MQC.MQOO_FAIL_IF_QUIESCING);&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=2028" width="1" height="1"&gt;</description></item><item><title>re: Connecting to MQSeries with .NET</title><link />http://developers.de/blogs/damir_dobric/archive/2007/04/13/Connecting-to-MQSeries-with-.NET.aspx#2027<pubdate>Wed, 25 Jun 2008 05:27:55 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:2027</guid><dc:creator>Vijay</dc:creator><description>&lt;p&gt;Hi Damir,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;What does there Errors mean, when I am trying to connect with a Web-Sphere from .NET 1.1:&lt;/p&gt;
&lt;p&gt;An unhandled exception of type &amp;#39;System.EntryPointNotFoundException&amp;#39; occurred in amqmdnet.dll&lt;/p&gt;
&lt;p&gt;Additional information: Unable to find an entry point named xcsDetachThread in DLL amqxcs2.dll.&lt;/p&gt;
&lt;p&gt;An unhandled exception of type &amp;#39;System.TypeInitializationException&amp;#39; occurred in amqmdnet.dll&lt;/p&gt;
&lt;p&gt;Additional information: The type initializer for &amp;quot;IBM.WMQ.MQTrace&amp;quot; threw an exception.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=2027" width="1" height="1"&gt;</description></item><item><title>re: Connecting to MQSeries with .NET</title><link />http://developers.de/blogs/damir_dobric/archive/2007/04/13/Connecting-to-MQSeries-with-.NET.aspx#2025<pubdate>Wed, 25 Jun 2008 03:11:28 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:2025</guid><dc:creator>Vijay</dc:creator><description>&lt;p&gt;Hi Damir,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Can you send me the syntax of the Connection string for conncting with Web-Sphere from .NET&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=2025" width="1" height="1"&gt;</description></item><item><title>re: Connecting to MQSeries with .NET</title><link />http://developers.de/blogs/damir_dobric/archive/2007/04/13/Connecting-to-MQSeries-with-.NET.aspx#1987<pubdate>Sat, 21 Jun 2008 11:46:38 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1987</guid><dc:creator>Damir Dobric</dc:creator><description>&lt;p&gt;There many possible settings which could cause similar behavior. Be sure that you do not use session or if you use it, be sure that session relevant params are correctly set.&lt;/p&gt;
&lt;p&gt;However, before you start to setup complex things, try to mock the MQ-layer from WCF-Service point of view. Write a class which does nothing to be sure that this behavior is caused by Web-Service and not anything behind it. If it is WS, check following params: &lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/ms731379.aspx"&gt;msdn.microsoft.com/.../ms731379.aspx&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1987" width="1" height="1"&gt;</description></item><item><title>re: Connecting to MQSeries with .NET</title><link />http://developers.de/blogs/damir_dobric/archive/2007/04/13/Connecting-to-MQSeries-with-.NET.aspx#1985<pubdate>Fri, 20 Jun 2008 20:51:31 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1985</guid><dc:creator>san1850</dc:creator><description>&lt;p&gt;I am currently using a webservice to put and get the mqmessage from my .net windows application.Everything is working fine but 1 in 100 times the host sends me blank message back.When we try it from local machine with client installed it never happens.It is killing the users as it blanks out the form and they need to enter all the values.Is it any setting we are missing or its instance creation of webservice is causing error.Thank you.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1985" width="1" height="1"&gt;</description></item></channel></rss>