Module 5: Routing BizTalk Messages
description
Transcript of Module 5: Routing BizTalk Messages
Module 5:Routing BizTalk
Messages
Overview
Lesson 1: Introduction to Message RoutingLesson 2: Configuring Message RoutingLesson 3: Monitoring Orchestrations and Messages
Lesson 1: Introduction to Message Routing
The Publish and Subscribe ArchitectureWhat Is the MessageBox Database?What Is Message Routing? What Is a Port? BizTalk Message FlowWhat Is Property Promotion?Demonstration: Promoting a Property
Receive Location
Messages received, processed, and published to the MessageBox database
2
The Publish and Subscribe Architecture
A filter expression defines properties of messages in which each subscriber is interested.
1
Message properties are evaluated to determine which subscribers require a copy of the message
3
XML or Flat File
A copy of the message is delivered to each subscriber
4
ReceiveAdapter
ReceivePipeline
XML
Subscribed
Business Process
SubscribedMessageDatabase
Send Port
Administration TasksAdding a new MessageBox databaseDisabling new message publicationDeleting a MessageBox from a BizTalk group
MessageBox DatabaseStores subscription informationDelivers messages to subscribersStores the queues and state tables for eachBizTalk hostStores messages and message properties
What Is the MessageBox Database?
Receive LocationReceiveAdapter
Send Port CReceivePipeline
MessageBoxDatabase
What Is Message Routing?
Send Port B
Send Port A
PO Message
Message Routing
Routes directly to a port Based on a filter expressionConfigured on the send port
Filter Expression PortIf CustomerName = Contoso A
If Price > 1000 B
If Qty > 500 and Price < 1000 C
Ports specify:
How messages are sent and received by BizTalkThe communication direction andcommunication patternThe location where messages are received or sent
What Is a Port?
MessageBoxDatabase
Receive Port Send PortMaps MapsReceive Location
Receive Location
Receive Location
Receive Port Orchestration
XML EDI or Flat File
XML EDI or Flat File
BizTalk Message Flow
Send Port
SendAdapter
SendPipeline
MessageBox
MappingTO: NWTraders (Flat file format)
FROM: Fabrikam (XML format)
MappingFROM: Contoso (Flat file format)
TO: Fabrikam (XML format)
ReceiveLocation
ReceiveAdapter
ReceivePipeline
Property promotion
Fields that you choose to promote within a message instanceMakes the data in the field accessible to BizTalk servicesQuick promotion automatically creates a property schema
What Is Property Promotion?
Demonstration: Promoting a Property
In this demonstration, you will see how to promote a schema property
Lesson 2: Configuring Message Routing
Steps for Enabling Message RoutingConfiguring a Receive Port and Receive LocationDemonstration: Configuring a Receive Port and a File Receive LocationCreating and Configuring a Send PortConfiguring Send Port Filters Using a Send Port GroupEnlisting and Starting a Send PortDemonstration: Configuring a Send Port and Send Port Group
Steps:
Start and enable the newly created ports5
Create and configure send port filters4
Create send ports or send port groups3
Create receive port and receive location2
Promote fields to be filtered1
Steps for Enabling Message Routing
Receive location properties:
Receive handler (host)Enabled or disabledStart/stop receiving (date)Operating window (time period)
Configuring a Receive Port and Receive Location
Demonstration: Configuring a Receive Port and a File Receive Location
In this demonstration, you will see how to:Create a receive portConfigure a receive port to use a BizTalk mapCreate a receive locationConfigure a receive locationEnable a receive location
Creating and Configuring a Send Port
Send port properties:Send port namePrimary and secondary transportAddress (URI)Retry countService window enabled/disabled
Configuring Send Port Filters
Filtering
Filter messages based on an expressionRoute to a send portExample: If the Amount is greater than or equal to $500, forward the message to a folder for approvalUse to subscribe to failed messages
Specify map
2
Create filter expression
1
Send Port Group
Send port group:
A named collection of send portsUsed to send the same message to multiple destinationsCan be used to route based on message content by using a filter expression
Using a Send Port Group
Message Send Ports
Enlisting and Starting
Enlisting and Starting a Send Port
Receive LocationReceiveAdapter
Send PortReceivePipeline
Send Port
UnEnlisted
Enlisted
Enlistment:
Port state determines if messages are to be routedUse BizTalk Explorer or BizTalk Administrator Console to change stateEnlisting creates a subscription in the MessageBox databaseStarting implies enlistment and begins the processing of messages
Port states:
Bound – no subscription (default)Stopped – subscribed and not receiving messagesStarted – subscribed and receiving messages
MessageDatabase
Demonstration: Configuring a Send Port and a Send Port Group
In this demonstration, you will see how to:Create a send portConfigure a send portCreate a send port filterCreate a send port groupChange the state of a send port
Lesson 3: Monitoring Orchestrations and Messages
What Is the BizTalk Group Hub Page?Running a Query in the Group HubIdentifying Events and Data that Can Be TrackedViewing and Tracking Message ActivityDemonstration: Tracking and Viewing Message Activity
Group Hub
Configuration overviewWork in progress Suspended itemsGrouped suspended service instances
What Is the BizTalk Group Hub Page?
Running a Query in the Group Hub
Query results
View instance detailsShow message details View instance subscriptionsTerminate and suspend instances
Message Tracking
Track BusinessProcesses
BusinessAnalyst
OperationsSpecialist
Capabilities:
View processing steps and history Retrieve by data or system propertiesMonitor and track in real time Track archived dataLimit access by using permissionsModify tracking propertieswithout redeploymentDebug orchestrations
Event Tracking
Start and end of a serviceSending or receiving of a message Start and end of a pipelineStart and end of an orchestrationExecution of each orchestration shape
Identifying Types of Events and Data that Can Be Tracked
Data Tracking
Message contentsPromoted propertiesRouting informationPartner dataSchema informationStrong name used
Viewing and Tracking Message Activity
View Message Activity
List and run queriesSearch a schema for promoted propertiesDebug orchestrations
Demonstration: Tracking and Viewing Message Activity
In this demonstration, you will see how to:Use the BizTalk Group Hub to track and view message activityExamine message flow for a message processed by BizTalk Server
Lab: Routing BizTalk Messages
Exercise 1: Adding an Existing Schema and Map to the Project
Exercise 2: Promoting Schema PropertiesExercise 3: Creating a Receive Port and a
Receive LocationExercise 4: Creating a Send Port for All OrdersExercise 5: Creating a Send Port for Cash
OrdersExercise 6: Creating a Send Port for Credit
OrdersExercise 7: Testing the Port Configuration