Skip to main content
  • 212 Accesses

Abstract

Now that you’ve learned the theoretical concepts about messaging and Service Broker architecture, it’s time to talk about the actual implementation of Service Broker applications. In this chapter, you’ll learn how to write your own Service Broker services and how these services can communicate with each other. I’ll cover the following topics in detail:

  • Defining Service Broker applications: A Service Broker application consists of several Service Broker objects, including message types, contracts, a queue, and a service. You’ll learn how these objects are related to each other and how you can program them.

  • Sending messages: Once you define your Service Broker application, you’re able to send messages between your Service Broker services. You’ll learn how to exchange messages successfully.

  • Retrieving and processing messages: As soon as you send messages to another Service Broker service, you must retrieve and process the messages. You’ll learn how to retrieve and process the messages and how to react to different message types.

  • Error handling: Every robust software application needs error handling; the same is true with Service Broker. Service Broker provides error-handling possibilities that are directly integrated into the infrastructure provided by Service Broker. You’ll learn how to use error handling and how to handle poison messages.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2007 Klaus Aschenbrenner

About this chapter

Cite this chapter

(2007). Service Broker in Action. In: Pro SQL Server 2005 Service Broker. Apress. https://doi.org/10.1007/978-1-4302-0306-3_3

Download citation

Publish with us

Policies and ethics