|
Home > Archive > BizTalk Server General > March 2005 > MSMQT and orchestration
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
MSMQT and orchestration
|
|
| Nathalie TETEFORT 2005-03-24, 7:51 am |
| Hello,
we have the following .NET program (form the SDK) which sends a MSMQT
message on a Biztalk server :
MessageQueue mq_dest = new
MessageQueue(" FormatName:DIRECT=OS:chmstrdev\private$\
test_msmq2");
mq_dest.Formatter = new System.Messaging.Message msg = new
System.Messaging.Message();
msg.Label = "TestMessageLabel";
StreamWriter wr = new
StreamWriter(msg.BodyStream,System.Text.Encoding.Unicode);
wr.Write("message body");
wr.Flush();
mq_dest.Send(msg, MessageQueueTransactionType.Single);
This program works fine.
We also have a Biztalk orchestration with a receive port configured as below
:
URI : test_msmq2
Transport : MSMQT
Receive Pipeline : Microsoft.DefaultPipeline.PassThruReceive.
This port is linked to a receive shape with a System.String message.
The orchestration is deployed and started.
When we send a message with the .NET program, this message appears in the
HAT with the state "Suspended", "Service Class" = "Routing Failure Report".
And in the Windows event viewer we have the following message :
"MSMQT failed to publish the message coming into the queue
DIRECT=OS:chmstrdev\private$\test_msmq2,
because no consumer mas waiting for
it".
Any suggestion ?
Nathalie
| |
| Jon Flanders[DevelopMentor] 2005-03-24, 5:50 pm |
| You need to use XmlReceive as the pipeline (most likely) - chances are your
orchestration as part of its subscription is using the MessageType
(generally considered the "schema type"). The PassThroughReceive pipeline
will not promote this property into the message context - the XmlReceive
pipeline does.
--
Jon Flanders [DevelopMentor]
http://staff.develop.com/jfland/
http://www.develop.com/courses/biztalk
"Nathalie TETEFORT" <na.tetefortNOSPAM@valmont-eu.com> wrote in message
news:%23uKobBGMFHA.244@TK2MSFTNGP12.phx.gbl...
> Hello,
> we have the following .NET program (form the SDK) which sends a MSMQT
> message on a Biztalk server :
>
>
> MessageQueue mq_dest = new
> MessageQueue(" FormatName:DIRECT=OS:chmstrdev\private$\
test_msmq2");
> mq_dest.Formatter = new System.Messaging.Message msg = new
> System.Messaging.Message();
> msg.Label = "TestMessageLabel";
> StreamWriter wr = new
> StreamWriter(msg.BodyStream,System.Text.Encoding.Unicode);
> wr.Write("message body");
> wr.Flush();
> mq_dest.Send(msg, MessageQueueTransactionType.Single);
>
> This program works fine.
>
> We also have a Biztalk orchestration with a receive port configured as
> below
> :
> URI : test_msmq2
> Transport : MSMQT
> Receive Pipeline : Microsoft.DefaultPipeline.PassThruReceive.
>
> This port is linked to a receive shape with a System.String message.
> The orchestration is deployed and started.
>
> When we send a message with the .NET program, this message appears in the
> HAT with the state "Suspended", "Service Class" = "Routing Failure
> Report".
> And in the Windows event viewer we have the following message :
> "MSMQT failed to publish the message coming into the queue
> DIRECT=OS:chmstrdev\private$\test_msmq2,
because no consumer mas waiting
> for
> it".
>
> Any suggestion ?
>
> Nathalie
>
>
|
|
|
|
|