Module 5: Routing BizTalk Messages

27
Module 5: Routing BizTalk Messages

description

Module 5: Routing BizTalk Messages. Overview . Lesson 1: Introduction to Message Routing Lesson 2: Configuring Message Routing Lesson 3: Monitoring Orchestrations and Messages. Lesson 1: Introduction to Message Routing. The Publish and Subscribe Architecture What Is the MessageBox Database? - PowerPoint PPT Presentation

Transcript of Module 5: Routing BizTalk Messages

Page 1: Module 5: Routing BizTalk Messages

Module 5:Routing BizTalk

Messages

Page 2: Module 5: Routing BizTalk Messages

Overview

Lesson 1: Introduction to Message RoutingLesson 2: Configuring Message RoutingLesson 3: Monitoring Orchestrations and Messages

Page 3: Module 5: Routing BizTalk 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

Page 4: Module 5: Routing BizTalk Messages

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

Page 5: Module 5: Routing BizTalk Messages

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?

Page 6: Module 5: Routing BizTalk Messages

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

Page 7: Module 5: Routing BizTalk Messages

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

Page 8: Module 5: Routing BizTalk Messages

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

Page 9: Module 5: Routing BizTalk Messages

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?

Page 10: Module 5: Routing BizTalk Messages

Demonstration: Promoting a Property

In this demonstration, you will see how to promote a schema property

Page 11: Module 5: Routing BizTalk Messages

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

Page 12: Module 5: Routing BizTalk Messages

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

Page 13: Module 5: Routing BizTalk Messages

Receive location properties:

Receive handler (host)Enabled or disabledStart/stop receiving (date)Operating window (time period)

Configuring a Receive Port and Receive Location

Page 14: Module 5: Routing BizTalk Messages

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

Page 15: Module 5: Routing BizTalk Messages

Creating and Configuring a Send Port

Send port properties:Send port namePrimary and secondary transportAddress (URI)Retry countService window enabled/disabled

Page 16: Module 5: Routing BizTalk Messages

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

Page 17: Module 5: Routing BizTalk Messages

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

Page 18: Module 5: Routing BizTalk Messages

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

Page 19: Module 5: Routing BizTalk Messages

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

Page 20: Module 5: Routing BizTalk Messages

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

Page 21: Module 5: Routing BizTalk Messages

Group Hub

Configuration overviewWork in progress Suspended itemsGrouped suspended service instances

What Is the BizTalk Group Hub Page?

Page 22: Module 5: Routing BizTalk Messages

Running a Query in the Group Hub

Query results

View instance detailsShow message details View instance subscriptionsTerminate and suspend instances

Page 23: Module 5: Routing BizTalk Messages

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

Page 24: Module 5: Routing BizTalk Messages

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

Page 25: Module 5: Routing BizTalk Messages

Viewing and Tracking Message Activity

View Message Activity

List and run queriesSearch a schema for promoted propertiesDebug orchestrations

Page 26: Module 5: Routing BizTalk Messages

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

Page 27: Module 5: Routing BizTalk Messages

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