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 -----------------
- 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
- Exchange Server 2010 : Upgrading from and Coexisting with Exchange Server 2003 (part 5)
- Exchange Server 2010 : Upgrading from and Coexisting with Exchange Server 2003 (part 4)
- Exchange Server 2010 : Upgrading from and Coexisting with Exchange Server 2003 (part 3)
- Exchange Server 2010 : Upgrading from and Coexisting with Exchange Server 2003 (part 2)
- Exchange Server 2010 : Upgrading from and Coexisting with Exchange Server 2003 (part 1)
- Exchange Server 2010 : Useful Tools for an Upgrade (part 1)
- Exchange Server 2010 : Useful Tools for an Upgrade (part 1)
- Active Directory Domain Services 2008: Modify the Precedence for Password Settings Objects
- Active Directory Domain Services 2008: Apply a Password Settings Object to Users and Security Groups
- Active Directory Domain Services 2008: Modify Settings Defined in Password Settings Objects
- BizTalk Server 2009 : Getting results from asynchronous invocations (part 3)
- BizTalk Server 2009 : Getting results from asynchronous invocations (part 2)
 
 
REVIEW
- First look: Apple Watch

- 10 Amazing Tools You Should Be Using with Dropbox
VIDEO TUTORIAL
- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 1)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 2)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 3)
Popular tags
Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS
Most View
- Exchange 2007: How Do I Modify a Database Size Limit?
- Windows 7 : Enhancing Your Browsing Security (part 1) - Blocking Pop-Up Windows
- Enable the Global Audit Policy by Using the Command Line
- Windows Phone 7 : Updating Your Phone Software
- SOA with .NET and Windows Azure : WCF Discovery (part 1) - Discovery Modes
- Microsoft ASP.NET 3.5 : WCF Services for ASP.NET AJAX Applications
- Securing Windows 7 : Thwarting Snoops and Crackers (part 2) - Locking Your Computer Manually, Automatically
- Windows 7 : Accessing a Shared Printer
- SQL Server 2008 : Data Encryption - SQL Server Key Management
- Windows 7 : Firing Up the Registry Editor