BizTalk Server Applications Integration - Sending MSMQ messages to BizTalk 2004

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Applications Integration > July 2004 > Sending MSMQ messages to BizTalk 2004





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 Sending MSMQ messages to BizTalk 2004
Mark Abrams

2004-05-30, 10:46 am

I have an orchestration that receives messages via the BizTalk Message Queuing (MSMQT) adapter for BizTalk 2004. The local queue is marked as being non-transactional. If a remote application sends a non-transactional MSMQ message to the BizTalk queue ever
ything is fine.

However, if the remote application sends a transactional message to the BizTalk queue, an event is logged in the application log stating that "The message was sent to a non-transactional queue within a transaction.". This is what I would expect. However,
the actual message that was sent has vanished. It is not in HAT, nor does it appear in any dead queue. The MSMQ Help states that sending a transactional message to a non-transactional queue, or a non-transactional message to a transactional queue, the me
ssage will be diverted to the Dead-Letter queue. But in MSMQT, there does not appear to be a dead-letter queue.

Has anyone come across this "feature" of MSMQT ?? I find it a bit worrying that the MSMQ message vanishes, after all, it is supposed to be a reliable transport protocol.

Thanks for any help,

Mark.

Tim

2004-05-30, 10:46 am

Mark,

I'm a little confused about this. If you are using an MSMQT receive location you do not create a real MSMQ queue. You only need to create a queue when you are sending from BizTalk and it seems that only remote
queues are supported in this scenario.



Iuliu Rus

2004-05-30, 10:46 am

MSMQ messages do not go to the dead-letter queue by default, you need to
ask for for it.
If you send the messages using System.Messaging, use the following:
MessageQueue queue = new MessageQueue(@"....");
Message msg = new Message("test");
msg.Label = "some label";
msg.Body = "body";
msg.UseDeadLetterQueue = true;

If you are using MSMQ com objects, set the Journal property of the
MSMQMessage to MQMSG_DEADLETTER.

Nick Malik

2004-05-31, 2:51 am

Not sure I understand your response, Tim.

MSMQT does connect to a queue. How would you send a message to MSMQT
without a queue (albeit a remote one)?

--- NM
(Still learning BTS2004)

"Tim" <riley_tim@yahoo.com> wrote in message
news:64250d3a78764c0e852be4abf668ff4d@bi
ztalkug...
> Mark,
>
> I'm a little confused about this. If you are using an MSMQT receive

location you do not create a real MSMQ queue. You only need to create a
queue when you are sending from BizTalk and it seems that only remote
> queues are supported in this scenario.
>
>
>



Tim

2004-06-03, 10:56 am

Hi Nick,

I can confirm that when you are submitting messages to BizTalk using MSMQT you do not create a queue, quote from the documentation:

"a queue in BizTalk Message Queuing is a virtual entity" (see Help ms-help://BTS_2004/Operations/htm/ebiz_ops_adapt_file_doxf.htm). What happens is that MSMQT listens on the standard MSMQ port and intercepts any messages that are destined for queues that
are defined as MSMQT receive locations and submits them into the Message Box. That's why you can't see the queues or the messages in the MSMQ explorer. I have not tried creating an MSMQ queue with the same name as an MSMQT receive location queue, but I
don't think the results will be very pretty!

When sending from BizTalk using MSMQT you do need a really MSMQ queue to post to and this must be a remote queue. I'm not sure if this is documented, but it took me a long time to figure this out and it has been confirmed by an on-site MS consultant.

I think the reason you have the vanishing message in HAT is that as far as BizTalk is concerned it didn't receive the message because of the clash of transaction support


----------------------------------------------
sent via http://www.biztalkug.com
all about BizTalk
Nick Malik

2004-06-04, 11:56 pm

Thanks for the terriffic explaination, Tim. I'm still learning BTS2K4, so
this is very helpful.

-- Nick

"Tim" <riley_tim@yahoo.com> wrote in message
news:1b4c424df8af462eb5170f1ac0a2b7ea@bi
ztalkug...
> Hi Nick,
>
> I can confirm that when you are submitting messages to BizTalk using MSMQT

you do not create a queue, quote from the documentation:
>
> "a queue in BizTalk Message Queuing is a virtual entity" (see Help

ms-help://BTS_2004/Operations/htm/ebiz_ops_adapt_file_doxf.htm). What
happens is that MSMQT listens on the standard MSMQ port and intercepts any
messages that are destined for queues that are defined as MSMQT receive
locations and submits them into the Message Box. That's why you can't see
the queues or the messages in the MSMQ explorer. I have not tried creating
an MSMQ queue with the same name as an MSMQT receive location queue, but I
don't think the results will be very pretty!
>
> When sending from BizTalk using MSMQT you do need a really MSMQ queue to

post to and this must be a remote queue. I'm not sure if this is
documented, but it took me a long time to figure this out and it has been
confirmed by an on-site MS consultant.
>
> I think the reason you have the vanishing message in HAT is that as far as

BizTalk is concerned it didn't receive the message because of the clash of
transaction support
>
>
> ----------------------------------------------
> sent via http://www.biztalkug.com
> all about BizTalk



michelle_ca

2004-07-01, 5:52 pm

Hi Tim,

right now i am struggling to how MSMQ talks to MSMQT. could you please
give me an example or a tutorial?

Thanks,

Michelle



michelle_ca

2004-07-01, 5:52 pm



michelle_ca

2004-07-01, 5:52 pm

Hi Tim,

i can send message from biztalk msmqt. but i cannot send message to
biztalk. my case in details is as follows:

i ran vb.net a small program sending a message to the remote biztalk. it
looks like the message got through, but i didn't see any message there by
HAT. i am wondering somehting wrong. Could you please give me some hints
about the terrible issue? Thanks alot

Michelle

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com