BizTalk Server General - Dynamic Send Port example

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > June 2005 > Dynamic Send Port example





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 Dynamic Send Port example
njhudson

2005-06-27, 8:47 pm

I may have a need to use a dynamic send port to handle distribution of
files, but I cannot find a good example or explanation of how to set
one up.

In my scenario, I pick up messages from a single directory on an ftp
server, translate them, then deposit them in different directories
based on promoted fields in the map. For example, my message could
have a promoted field called "ManufacturerID". I want the messages
with ManufacturerID = ABCInc to go to a folder named "ABCInc" and
messages with ManufacturereID = XYZCo to go to a folder named
"XYZCo". How do I do this?

Thank You,
Nathan

Stephen W. Thomas

2005-06-27, 8:47 pm

Hello.

It sounds like your want to do Content Based Routing rather then dynamic
send ports. Dynamic send ports are usually used inside an Orchestration – in
fast I do not know if they can be used outside of an Orchestration. They
would be useful if the destination information is included inside the message.

To set up a content based routing solution, you could create a property
schema to promote your properties like ManufacturereID. Then, you can use
Send Ports with a Filter to route the messages accordingly.

You can map on either the Receive Port or the Send port.

Hope this helps.

Stephen W. Thomas
http://www.biztalkgurus.com


"njhudson" wrote:

> I may have a need to use a dynamic send port to handle distribution of
> files, but I cannot find a good example or explanation of how to set
> one up.
>
> In my scenario, I pick up messages from a single directory on an ftp
> server, translate them, then deposit them in different directories
> based on promoted fields in the map. For example, my message could
> have a promoted field called "ManufacturerID". I want the messages
> with ManufacturerID = ABCInc to go to a folder named "ABCInc" and
> messages with ManufacturereID = XYZCo to go to a folder named
> "XYZCo". How do I do this?
>
> Thank You,
> Nathan
>
>

Jeff Lynch

2005-06-28, 2:52 am

Stephen has several good examples available on his blog at
http://www.geekswithblogs.net/sthomas/ or you could look at an example of
the Message Broker pattern which uses content based routing on my post last
February at
http://codebetter.com/blogs/jeff.ly...2/15/51007.aspx

--
Jeff Lynch
"A BizTalk Enthusiast"
http://codebetter.com/blogs/jeff.lynch


"Stephen W. Thomas" <StephenWThomas@discussions.microsoft.com> wrote in
message news:6654837F-E11B-4568-80BE-3C93C32BF9A2@microsoft.com...[vbcol=seagreen]
> Hello.
>
> It sounds like your want to do Content Based Routing rather then dynamic
> send ports. Dynamic send ports are usually used inside an Orchestration -
> in
> fast I do not know if they can be used outside of an Orchestration. They
> would be useful if the destination information is included inside the
> message.
>
> To set up a content based routing solution, you could create a property
> schema to promote your properties like ManufacturereID. Then, you can use
> Send Ports with a Filter to route the messages accordingly.
>
> You can map on either the Receive Port or the Send port.
>
> Hope this helps.
>
> Stephen W. Thomas
> http://www.biztalkgurus.com
>
>
> "njhudson" wrote:
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com