<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TechBlog &#187; MSMQ</title>
	<atom:link href="http://techblog.byllemos.com/tag/msmq/feed/" rel="self" type="application/rss+xml" />
	<link>http://techblog.byllemos.com</link>
	<description>Accelerating into the Future with Wisdom about Technology! Ingrid Byllemos</description>
	<lastBuildDate>Tue, 05 Jan 2010 00:04:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>MSMQ and Navision</title>
		<link>http://techblog.byllemos.com/2006/11/msmq-and-navision/</link>
		<comments>http://techblog.byllemos.com/2006/11/msmq-and-navision/#comments</comments>
		<pubDate>Fri, 17 Nov 2006 20:22:03 +0000</pubDate>
		<dc:creator>iby</dc:creator>
				<category><![CDATA[Automations]]></category>
		<category><![CDATA[MSMQ]]></category>
		<category><![CDATA[Navision]]></category>

		<guid isPermaLink="false">http://techblog.byllemos.com/?p=35</guid>
		<description><![CDATA[<p>From Navision it is possible to read and write to a MSMQ using the automation Microsoft Message Queue 3.0 Object Library. This is however not my preferred way, because you have to handle Messages IDs by yourself. Which means, if&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>From Navision it is possible to read and write to a MSMQ using the automation Microsoft Message Queue 3.0 Object Library. This is however not my preferred way, because you have to handle Messages IDs by yourself. Which means, if you don&#8217;t have to answer back with the same message id, this is an ok way to handle the queues, else you have to program your own ID handling or use a 3&#8242;d part application for this purpose.<br />
<span id="more-35"></span></p>
<p>To send messages through the MSMQs do the following:</p>
<p>First create the QueueInfo instans and open the Queue with send access</p>
<blockquote><p> CREATE(QueueInfo);<br />
QueueInfo.PathName := <code>'</code>.\private$\testqueue<code>'</code>;<br />
Queue := QueueInfo.Open(2,0); //2=MS_SEND_ACCESS, 0 = MQ_DENY_NONE</p></blockquote>
<p>Then create the Message</p>
<blockquote><p> CREATE(MSMQ_Message);<br />
MSMQ_Message.Label := &#8216;Test Message&#8217;;<br />
MSMQ_Message.Body := &#8216;This is a test&#8217;;</p></blockquote>
<p>Send the Message to the Queue</p>
<blockquote><p>MSMQ_Message.Send(Queue);</p></blockquote>
<p>and finally close the queue</p>
<blockquote><p> Queue.Close;<br />
CLEAR(MSMQ_Message);<br />
CLEAR(Queue);</p></blockquote>
<p>To read messages do the following:</p>
<p>First create the QueueInfo instans and open the Queue with receive access</p>
<blockquote><p> CREATE(QueueInfo);<br />
QueueInfo.PathName := <code>'</code>.\private$\queue_request<code>'</code>;<br />
Queue := QueueInfo.Open(1,0); //1=MS_RECEIVE_ACCESS, 0 = MQ_DENY_NONE</p></blockquote>
<p>Then Create the Message Instans and read (purge) the first message:</p>
<blockquote><p> CREATE(MSMQ_Message);<br />
MSMQ_Message := Queue.Receive;<br />
Body := MSMQ_Message.Body;</p></blockquote>
<p>and finally close the queue</p>
<blockquote><p> Queue.Close;<br />
CLEAR(MSMQ_Message);<br />
CLEAR(Queue);</p></blockquote>
<p>In both examples the following variables was used:</p>
<ul>
<li>Queue is the automation <code>'</code>Microsoft Message Queue 3.0 Object Library<code>'</code>.MSMQQueue</li>
<li>MSMQ_Message is the automation <code>'</code>Microsoft Message Queue 3.0 Object Library<code>'</code>.MSMQMessage</li>
<li>QueueInfo is the automation <code>'</code>Microsoft Message Queue 3.0 Object Library<code>'</code>.MSMQQueueInfo</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://techblog.byllemos.com/2006/11/msmq-and-navision/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft Message Queuing (MSMQ)</title>
		<link>http://techblog.byllemos.com/2006/11/microsoft-message-queuing-msmq/</link>
		<comments>http://techblog.byllemos.com/2006/11/microsoft-message-queuing-msmq/#comments</comments>
		<pubDate>Tue, 14 Nov 2006 19:19:29 +0000</pubDate>
		<dc:creator>iby</dc:creator>
				<category><![CDATA[MSMQ]]></category>

		<guid isPermaLink="false">http://techblog.byllemos.com/?p=34</guid>
		<description><![CDATA[<p>Microsoft Message Queuing (aka MSMQ) is a kind of messaging protocol, where applications can communicate asynchronous with each other. This can be done in a local Network, but also over the Internet.<br />
<span id="more-34"></span><br />
The Advantage of using MSMQ,&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>Microsoft Message Queuing (aka MSMQ) is a kind of messaging protocol, where applications can communicate asynchronous with each other. This can be done in a local Network, but also over the Internet.<br />
<span id="more-34"></span><br />
The Advantage of using MSMQ, is that data will not be lost if something should go wrong with the applications. This is because MSMQ uses asynchronous queues, which means that messages will be queued in case of an applications failure.</p>
<p>Where will MSMQs be used? Well typically they will be used in order applications where real time answers are not required, but where near real time or longer response time is ok <img src='http://techblog.byllemos.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>A typical example could be Web Forms, which sends orders into a system for order processing.</p>
]]></content:encoded>
			<wfw:commentRss>http://techblog.byllemos.com/2006/11/microsoft-message-queuing-msmq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

