Defining Services to Send and Receive Messages

Services represent the endpoints in Service Broker applications. You can think of them as the glue that binds contracts with queues. This binding ensures that the typed messages specified in the contract end up in the appropriate queues.

Here is the DDL syntax for creating services:

image

For this example, you need to create two services: the initiator in AdventureWorks2008 and the target in XCatMgmt.

This is the initiator in AdventureWorks2008:

image

And this is the target in XCatMgmt:

As you can see, creating ...

Get Microsoft® SQL Server 2008 R2 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.