BizTalk Server General - routing messages to appropriate channel or messaging port

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > February 2004 > routing messages to appropriate channel or messaging port





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 routing messages to appropriate channel or messaging port

2004-02-08, 8:37 am

Hi,
I'm new to biztalk.
I have multiple messages for various Organizations collecting in the inbound
MSMQ. I want to map these messages and place them on the outbound MSMQ -
separate queue for each Org. What's the best way of doing this?

I probably want to have a single Receive Fxn placing messages on a Channel
which determines which Messaging Port to send to...

Any help is appreciated.

Thanks,

S


Nick Malik

2004-02-08, 8:37 am

Hello,

First off, your channels are tied to the message port (many channels to each
message port). Therefore, your channel cannot "determine" the message port.
It's the other way around. You will tell BTS the destination organization
and document type, and it will pick the appropriate channel that will get
that particular document to that particular recipient.

The key is being able to tell, in the recieve function, what destination you
need. Depending on the type of documents coming in, you may be able to have
Biztalk parse the inbound document and get some information from it to
identify the destination. Otherwise, you will have to come up with a way of
determining the destination organization through code.

I hope this helps,
--- Nick

<s> wrote in message news:OqToKgX2DHA.1532@TK2MSFTNGP10.phx.gbl...
> Hi,
> I'm new to biztalk.
> I have multiple messages for various Organizations collecting in the

inbound
> MSMQ. I want to map these messages and place them on the outbound MSMQ -
> separate queue for each Org. What's the best way of doing this?
>
> I probably want to have a single Receive Fxn placing messages on a Channel
> which determines which Messaging Port to send to...
>
> Any help is appreciated.
>
> Thanks,
>
> S
>
>



2004-02-08, 8:37 am

Hi Nick,
The message has Org ID.
Can you help me with details...
Are you talking about setting up multiple receive fxns (rf), each attached
to a channel?
Or, should I set up one rf with with multiple channels?
What about openness settings on rf &/or channel...?

Thanks,
S

"Nick Malik" <nickmalik@hotmail.nospam.com> wrote in message
news:noUMb.41735$Rc4.166433@attbi_s54...
> Hello,
>
> First off, your channels are tied to the message port (many channels to

each
> message port). Therefore, your channel cannot "determine" the message

port.
> It's the other way around. You will tell BTS the destination organization
> and document type, and it will pick the appropriate channel that will get
> that particular document to that particular recipient.
>
> The key is being able to tell, in the recieve function, what destination

you
> need. Depending on the type of documents coming in, you may be able to

have
> Biztalk parse the inbound document and get some information from it to
> identify the destination. Otherwise, you will have to come up with a way

of
> determining the destination organization through code.
>
> I hope this helps,
> --- Nick
>
> <s> wrote in message news:OqToKgX2DHA.1532@TK2MSFTNGP10.phx.gbl...
> inbound
MSMQ -[color=blue]
Channel[color=blue]
>
>



Jan Eliasen

2004-02-08, 8:38 am

On Tue, 13 Jan 2004 09:39:49 -0800, <Steve> wrote:

You have a couple of options; For all of them, you need one channel
for each MSMQ you want to write to.

1. Define all possible organizations defined in Messaging Manager.
Then, in the receive function, don't specify the channel to use, but
rather specify documentdefinition and perhaps the
destination-organization. Let BizTalk read the source-organization
from the document and then it will choose the correct channel based on
this information. This will require appropriate qualifiers on each
organization.

2. If the org. id in the document isn't something you can get BizTalk
to read, or if it consists of more than one field, etc. then let
BizTalk put the document into all the channels, and use the "Filter"
on the channels to select the documents that are to be processed in
each channel.

Hope this helped?


>Hi Nick,
>The message has Org ID.
>Can you help me with details...
>Are you talking about setting up multiple receive fxns (rf), each attached
>to a channel?
>Or, should I set up one rf with with multiple channels?
>What about openness settings on rf &/or channel...?
>
>Thanks,
>S
>
>"Nick Malik" <nickmalik@hotmail.nospam.com> wrote in message
>news:noUMb.41735$Rc4.166433@attbi_s54...
>each
>port.
>you
>have
>of
>MSMQ -
>Channel
>


--
Jan Eliasen, representing himself and not the company he works for.
MCP in Microsoft BizTalk Server
Delfin Heras

2004-02-08, 8:39 am


There is another possibility here. With this one you only need an msmq
receive function, one channel to an open destination port.
In your message you need to specify the destination q. See the message
below.

<message><data>data_1</data><dest>queue://Direct=OS:victoria\private$\test</
dest></message>

When defining this document you need to go on the directory tab and specify
that the dest tag is the destination value.
The destination q above is private and its name is test. For public q's the
format is different.

best.
d.



"Jan Eliasen" <spam@eliasen.dk> wrote in message
news:cdhc005h2hn0p6m0p210kbfb4cqjh1570r@
4ax.com...
> On Tue, 13 Jan 2004 09:39:49 -0800, <Steve> wrote:
>
> You have a couple of options; For all of them, you need one channel
> for each MSMQ you want to write to.
>
> 1. Define all possible organizations defined in Messaging Manager.
> Then, in the receive function, don't specify the channel to use, but
> rather specify documentdefinition and perhaps the
> destination-organization. Let BizTalk read the source-organization
> from the document and then it will choose the correct channel based on
> this information. This will require appropriate qualifiers on each
> organization.
>
> 2. If the org. id in the document isn't something you can get BizTalk
> to read, or if it consists of more than one field, etc. then let
> BizTalk put the document into all the channels, and use the "Filter"
> on the channels to select the documents that are to be processed in
> each channel.
>
> Hope this helped?
>
>
attached[color=blue]
organization[color=blue]
get[color=blue]
destination[color=blue]
way[color=blue]
>
> --
> Jan Eliasen, representing himself and not the company he works for.
> MCP in Microsoft BizTalk Server



Delfin Heras

2004-02-25, 3:35 pm


"Delfin Heras" <melancolia7@hotmail.com> wrote in message news:...
>
> There is another possibility here. With this one you only need an msmq
> receive function, one channel to an open destination port.
> In your message you need to specify the destination q. See the message
> below.
>
>

<message><data>data_1</data><dest>queue://Direct=OS:victoria\private$\test</
> dest></message>
>
> When defining this document you need to go on the directory tab and

specify
> that the dest tag is the destination value.
> The destination q above is private and its name is test. For public q's

the
> format is different.
>
> best.
> d.
>
>
>
> "Jan Eliasen" <spam@eliasen.dk> wrote in message
> news:cdhc005h2hn0p6m0p210kbfb4cqjh1570r@
4ax.com...
> attached
to[color=darkred]
message[color=darkred]
> organization
> get
> destination
to[color=darkred]
to[color=darkred]
> way
the[color=darkred]
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com