Programming4us
         
 
 
Applications Server

BizTalk Server 2009 : Using queues within asynchronous scenarios (part 3)

12/26/2010 9:03:38 AM
After building and deploying this sample, we need to assemble the necessary messaging ports from within the BizTalk Administration Console. First, import the BizTalk WCF Service Publishing Wizard-generated binding to produce our concluding WCF-NetMsmq adapter send port. After adding both a "message-type"-based subscription and BizTalk map to the send port, we build a simple FILE receive location to test our destination service. To prove that BizTalk successfully publishes to the queue, we should turn off the IIS 7.0 application pool associated with our service so that the messages are not automatically extracted from the queue by the service. If everything was set up correctly, we should be able to pick up a message, and see BizTalk drop it to the designated queue.

Now that we have BizTalk successfully acting as a MSMQ service consumer, it's time to complete our scenario and promote BizTalk to the status of MSMQ service provider as well. Lucky for us, this requires no additional development activities. Instead, we can switch our inbound receive location from being FILE-based to WCF-NetMsmq-based. In this case, we configure the in-process adapter to point to the private queue created earlier in this section.

Because we want our upstream service client to interrogate our BizTalk WCF endpoint for metadata, we should generate an IIS-hosted endpoint, which reveals our service contract. To do this, launch the BizTalk WCF Service Publishing Wizard and generate a metadata endpoint for our existing WCF-NetMsmq receive location.

Via the wizard, we want to expose a service with a one-way operation that will publish a message to the queue. If we are successful, a client application will be able to reference the MEX endpoint and import all the objects and configurations necessary to call the BizTalk hosted service. Remember that our MEX WSDL, while hosted as an HTTP endpoint, should show a service address that is MSMQ-based.

If you recall from earlier BizTalk + WCF discussions, we discovered that a BizTalk receive location needs to be in an Enabled status in order for the service to be online. Once again, MSMQ is an exception. Because there is a layer between the client and BizTalk endpoint, our BizTalk receive location (or BizTalk itself!) can be offline and the client application can still confidently distribute messages to the service. Once the BizTalk receive location returns to an active state, messages are read from the queue.

BizTalk has very strong support for MSMQ, and in scenarios with very disconnected clients possessing volatile uptime or specific throttling requirements, an intermediary queue offers a convenient way to reliably transfer data between systems.

Other -----------------
- BizTalk Server 2009 : Using queues within asynchronous scenarios (part 2)
- BizTalk Server 2009 : Using queues within asynchronous scenarios (part 1)
- Exchange Server 2010 : Upgrading from and Coexisting with Exchange Server 2003 (part 13) - Removing Legacy Exchange Servers
- Exchange Server 2010 : Upgrading from and Coexisting with Exchange Server 2003 (part 12) - Planning Public Folder Access and Migration
- Exchange Server 2010 : Upgrading from and Coexisting with Exchange Server 2003 (part 11)
- Exchange Server 2010 : Upgrading from and Coexisting with Exchange Server 2003 (part 10) - Recipient Update Service Migration
- Exchange Server 2010 : Upgrading from and Coexisting with Exchange Server 2003 (part 9) - Moving Offline Address Books
- Exchange Server 2010 : Upgrading from and Coexisting with Exchange Server 2003 (part 8)
- Exchange Server 2010 : Upgrading from and Coexisting with Exchange Server 2003 (part 7) - Coexistence for Management
- Exchange Server 2010 : Upgrading from and Coexisting with Exchange Server 2003 (part 6) - Upgrading Message Connectivity From Exchange Server 2003
 
 
Most View
- Active Directory 2008 : Proactive Directory Maintenance and Data Store Protection (part 5) - Protecting DCs as Virtual Machines
- Windows Phone 7 : Shopping for Music
- Windows 7 : Sharing Resources with the Network (part 1) - Setting Sharing Options & Creating User Accounts for Sharing
- Upgrading to SQL Server 2008 : Using the SQL Server Upgrade Advisor (UA)
- Windows Server 2008 : Install the TS Licensing Role Service
- SharePoint 2010 : Use a Slide Library
- BizTalk 2010 Recipes : Business Rules Framework - Setting Rule Priorities
- Windows Phone 7 : Synching with Your PC - Seeing What’s Synching
- Keyword Research Tools (part 4)
- Navigating the Central Administration Home Page (part 2)
Top 10
- Windows Phone 7 : Working with the Calendar - Adding Appointments
- Deploying and Administering Windows Vista : Understanding Windows Vista Installation
- Microsoft Systems Management Server 2003 : Modifying Installation Scripts Using the Installation Expert (part 1)
- Windows Server 2008 : Perform an Unscheduled Backup of Critical Volumes of a Domain Controller by Using the Command Line
- Scripting Windows 7 with WSH : Scripts and Script Execution
- Installing Windows Small Business Server 2011 : Selecting Network Components (part 1) - Selecting an Internet Service Provider
- The Art of SEO : Determining Keyword Value/Potential ROI
- SQL Server Integration Services : Connection Projects in Visual Studio
- Executing a Stored Procedure via a Linked Server
- Windows Vista - Sharing Files and Folders : Network Discovery and Browsing