Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Summary

This article describes a hotfix that provides two additional Delivery Mode properties for Minimal Lower Layer Protocol (MLLP) send and receive ports when you use the BizTalk Accelerator for HL7 in a Microsoft BizTalk Server 2010 environment:

  • Use MLLP Transport Acknowledgement

    This property is available in both one-way receive ports and one-way send ports.

  • Suspend Request Message on MLLP Transport NAK

    This property is available only in one-way send ports.

The MLLP receive adapter supports both one-way and two-way request response modes. If the receive adapter is configured, HL7 processing uses the Ordered Delivery parameter. This guarantees that the order of message delivery is maintained. When the MLLP receive adapter operates in two-way mode, the adapter does not receive a new message from the upstream system until the adapter generates an application (MSA) acknowledgement for the previous message to the upstream system. The generated ACK/NAK is sent to the message box database (MessageBoxDB). MessageBoxDB waits for the next polling interval before it sends the ACK/NAK to the upstream system.

The upstream system sends only one message at a time and only after it receives an ACK/NAK. Additionally, the BizTalk polling interval is configured, and the Ordered Delivery parameter is set to True. This means that the number of messages that are processed per second is limited. This hotfix provides for additional configuration for one-way send and receive ports. It does not affect the ACK/NAK. However, it significantly increases the number of documents that are processed per second.

You should use performance counters to take a baseline before and after you apply this hotfix. When you benchmark, you should submit a reasonable number of messages over a reasonable period. For example, you could use the following:

  • For the BizTalk:Messaging category, use the Documents processed/Sec counter.

  • For the BizTalk:Messaging Latency category, use all available counters.


One option to increase the number of documents that are processed per second is to lower the MaxReceiveInterval setting for the BizTalk host. Depending on the overall environment, on the tuning of the computer that is running Biz Talk Server 2010, and on the volume of documents that are processed, lowering the MaxReceiveInterval setting could have an adverse effect on the performance of the instance of SQL Server. For SQL Server tuning and for BizTalk tuning, refer to all available technical articles.

More Information

Note This hotfix also resolves an issue in Microsoft BizTalk 2010 Accelerator for HL7. For more information about this issue, click the following article number to view the article in the Microsoft Knowledge Base:

2454887 Events might be incorrectly logged for an MLLP-based message in BizTalk 2009 Accelerator for HL7 on a computer that is running Microsoft BizTalk Server 2009 or Microsoft BizTalk Server 2010

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website:

http://support.microsoft.com/contactus/?ws=supportNote The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

You must have Microsoft BizTalk Accelerator for HL7 (BTAHL7) installed to apply this hotfix.

Restart information

You may have to restart your computer after you apply this hotfix. If you are not prompted to restart, you must restart BizTalk services. For more information about this procedure, refer to the Readme.txt file that is included in this hotfix package.

Replacement information

This hotfix does not replace a previously released hotfix.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

File name

File version

File size

Date

Time

Platform

Microsoft.solutions.btahl7.mllp.dll

3.9.526.2

116,608

07-Jun-2011

15:27

x86

Microsoft.solutions.btahl7.shared.dll

3.9.526.2

92,040

07-Jun-2011

15:27

x86

Mllpreceive.exe

3.9.526.2

26,456

07-Jun-2011

15:27

x86

Mllpsend.exe

3.9.526.2

26,448

07-Jun-2011

15:27

x86

About the hotfix

Message flow after the hotfix is installed and configured

After you apply and enable this hotfix, the MLLP adapter submits any message that is received by the MLLP adapter to MessageBoxDB. The End Point Manager (EPM) calls back the adapter together with the submission status in the BatchComplete method. This causes the adapter to send the commit ACK/NAK to the upstream system. In turn, the upstream system receives the ACK/NAK and then sends the next message. The BatchComplete method is independent of the MaxReceiveInterval setting and is called immediately after the message is submitted to BizTalk successfully.

As soon as the message is ready to send, the send adapter transmits the message to the downstream system. The ACK/NAK is expected if the Use MLLP Transport Acknowledgement property is set to True. If the send is an ACK, BizTalk finishes the processing successfully. If the send is a NAK, and if the Suspend Request Message on MLLP Transport NAK property is set to True, the message is suspended directly without retrying. However, if the Suspend Request Message on MLLP Transport NAK property is set to False, BizTalk will retry based on the send port retry interval settings. (By default, the Suspend Request Message on MLLP Transport NAK property is set to False.)

The following diagram shows the message flow:

Message flow

  1. The message that is sent by the upstream system sending application is processed by the MLLP receive adapter.

  2. The MLLP adapter submits the message to BizTalk/EPM.

  3. The EPM calls back the adapter about the message submission status. The EPM does this in the Batch Complete method.

  4. A commit ACK/NAK is generated by the MLLP adapter and is based on the Batch Submission status. The ACK/NAK is sent to the sending application.

    Note If the Batch Submission status is Success, the adapter returns the ACK. However, if there is a failure or if the submission times out (for example, if the Batch Complete method call times out), the adapter returns the NAK to the sending application.

  5. The EPM hands over the message to the MLLP send adapter for transmission.

  6. The MLLP send adapter sends the processed message to the downstream system.

  7. The transport level ACK/NAK is expected by the MLLP send adapter to complete the communication.

  8. If the message in step 7 is an ACK, the adapter asks the EPM to delete the message. Otherwise, the adapter has to ask the EPM for a retry that is based on the retry interval setting. A new option is provided in the send port configuration setting for suspending the message directly, without a retry, if an MLLP NAK is received. By default, this option is set to False. If this option is set to True, the message will be suspended directly, without a retry, if an MLLP NAK is received.

Transport Level ACK/NACK format

The website contains the following information:

  • Example of an MLLP Commit Acknowledgement:

    <SB><ACK><EB><CR>

  • Example of an MLLP Negative Commit Acknowledgement:

    <SB><NAK><EB><CR>

Notes

  • In these examples, <SB> refers to the Start Block character (1 byte). This corresponds to the <VT>ASCII character, or <0x0B>.

    This should not be confused with the SOH or STX ASCII characters.

  • In these examples, <ACK> or <NAK> refer to the acknowledgement character (1 byte. Corresponds to the <ACK> ASCII character, or <0x06>) or the negative-acknowledgement character (1 byte. Corresponds to the <NAK> ASCII character, or <0x15>).

  • In these examples, <EB> refers to the End Block character (1 byte). This corresponds to the <FS> ASCII character, or <0x1C>.

  • In these examples, <CR> refers to the Carriage Return character (1 byte). This corresponds to the <CR> ASCII character, or <0x0D>.

  • Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.

How to configure the receive and send ports to use the new properties

Configure the receive and send ports as follows.

Note The receive and send port settings can be used independently or together.

Receive port configuration
  • The port must be a one-way port.

  • The Ordered Delivery parameter must be enabled.

  • You must set the Use MLLP Transport Acknowledgement property to True to enable transport level acknowledgment. By default, this property is set to False for existing ports or for new ports.

Receive port

Send port configuration
  • The port must be a one-way port.

  • The solicit-response mode must be set to No.

  • The Ordered Delivery parameter must be enabled.

  • You must set the Use MLLP Transport Acknowledgement property to True to enable transport level acknowledgment. By default, this property is set to False for existing ports or for new ports.

  • You must set the Suspend Request Message on MLLP Transport NAK property to True if the messages need to be suspended directly without being retried when a Transport NAK is received from a downstream system. Otherwise, the message will be retried for the number of times that is set in the transport advanced options of the send port. By default, this property is set to False for existing ports or for new ports.

Send port

About the "Use MLLP Transport Acknowledgement" property

The following table describes the expected behavior of one-way or two-way ports that use the Use MLLP Transport Acknowledgement property. The required combination of settings must be applied as described in the "How to enable the hotfix" section.

Notes

  • "Upstream system" refers to the sending application. It sends messages to BizTalk. These messages are incoming to BizTalk.

  • "Downstream system" refers to the receiving application. It receives messages from BizTalk. These messages are outgoing to BizTalk.



Kind of port

MLLP V2 Option On

MLLP V2 Option Off

One-way receive

Send MLLP ACK/NAK to the upstream system in the BatchComplete method.

No change in the behavior. In this situation, no ACK/NAK is sent to the upstream system.

Two-way receive

No change in the behavior. In this situation, the HL7 ACK/NAK in the TransmitMessage method is sent to the upstream system.

Note This option is not supported. For example, ignore even if the value is set to True.

No change in the behavior. In this situation, the HL7 ACK/NAK in the TransmitMessage method is sent to the upstream system.

One-way send

The MLLP ACK/NAK from the downstream system is waited for after the message is transmitted.

No change in the behavior. In this situation, the ACK/NAK from the downstream system is not waited for after the message is transmitted.

Two-way send or one-way send with solicit-response mode enabled

No change in the behavior. In this situation, the HL7 ACK/NAK from the downstream system is waited for after the message is transmitted.

Note This option is not supported. For example, ignore even if the value is set to True.

No change in the behavior. In this situation, the HL7 ACK/NAK from the downstream system is waited for after the message is transmitted.



Two-way receive and send port behavior is not changed. One-way receive and send port behavior is also not changed unless the Use MLLP Transport Acknowledgement property is set to true.

For more information, refer to the MLLP adapter documentation. If one-way receive and send ports have the appropriate configuration, performance improves. If the Use MLLP Transport Acknowledgement property of a two-way port or a one-way port is set to false, the kind of ACK that is generated continues without changes. In this situation, the kind of ACK that is generated depends on the BTAHL7 Configuration Explorer settings for the application that is sending the message. The value in fields MSH 15 and MSH 16 of a specific message can override this setting. However, if the Use MLLP Transport Acknowledgement property of a two-way port or a one-way port is set to false, you can set the configuration for applications that expect static ACKs only by using the BTAHL7 Configuration Explorer. Time-out behavior for the port remains unchanged..

The expected behavior in corner cases when the properties are used is as follows:

RECEIVE

  • WrongMLLPFormat: the message is not submitted to BizTalk.

  • WrongHL7Format: the message is submitted to BizTalk, and a MLLP ACK/NAK is transmitted that is based on the Batch Completion status.

  • TransmittingSocketIssue: the MLLP ACK/NAK is not transmitted, although the message is submitted to BizTalk.

  • ReceivingSocketIssue: the message is not received and therefore is not submitted, and no MLLP ACK/NAK transmission is sent.

  • If a submission to BizTalk fails, a NAK is transmitted.

  • If a negative status of Batch Complete is received, a NAK is transmitted.

SEND and send port property "stop sending subsequent messages on current message failure" = True

  • WrongMLLPFormat: the message is suspended because the MLLP ACK/NACK cannot be read. Processing will not continue until the suspended messages are cleared.

  • WrongHL7Format: the message fails before it reaches the adapter. Processing will not continue until the suspended messages are cleared.

  • TransmittingSocketIssue: the message is suspended. Processing will not continue until the suspended messages are cleared.

  • ReceivingSocketIssue: the message is suspended. Processing will not continue until the suspended messages are cleared.


The expected behavior when the Suspend Request Message on MLLP Transport NAK property is set to True or to False is as follows:

  • When the Suspend Request Message on MLLP Transport NAK property is set to True and a NAK is received, the message is suspended without a retry to send it.

  • When the Suspend Request Message on MLLP Transport NAK property is set to the default setting of False, a retry to send the message is started, based on the send port retry interval settings.


Changes to the MLLP SDK Utility

The MLLP SDK Utility includes the following new parameters. All other parameters remain unchanged. For more information, refer to the product documentation.

  • For MLLPReceive.exe, use the new parameter to return the MLLP ACK/NAK after the message is received. For example:

    MLLPReceive /p 12000 /sb 11 /eb 28 /cr 13 /MLLPTransACK
    MLLPReceive /p 12000 /sb 11 /eb 28 /cr 13 /MLLPTransNAK

  • For MLLPSend.exe, use the new parameter to wait for MLLP ACK/NAK. For example:

    MLLPSend /sb 11 /eb 28 /cr 13 /f "C:\HL7\ls.txt" /I 127.0.0.1 /p 11000 /UseMLLPTransACK

References

For more information about how to manage performance settings in BizTalk server, visit the following Microsoft Developer Network (MSDN) website:

Managing BizTalk Server Performance SettingsFor more information about messaging performance counters, visit the following MSDN website:

Messaging Performance CountersFor more information about Ordered Delivery of Messages, visit the following MSDN website:

Ordered Delivery of MessagesFor more information about BizTalk 2010 Accelerator for HL7 (BTAHL7), visit the following Microsoft website:

BizTalk 2010 Accelerator for HL7 (BTAHL7) documentationFor more information about the IBTBatchCallBack.BatchComplete method, visit the following MSDN website:

IBTBatchCallBack.BatchComplete methodFor more information about BizTalk Server hotfixes, click the following article number to view the article in the Microsoft Knowledge Base:

2003907 Information about BizTalk Server hotfixes

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×