Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6321605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:10:47+00:00 2026-05-24T16:10:47+00:00

I have an issue with a 3rd party DLL, which is NOT thread-safe, but

  • 0

I have an issue with a 3rd party DLL, which is NOT thread-safe, but which I need to call within an orchestration.

I’m making the DLL call within an Expression shape. The same DLL is called in a number of different orchestrations.

The problem I have is that for a series of incoming messages, BizTalk will run multiple orchestrations (or multiple instances of an orchestration) in parallel – which leads to exceptions within the DLL.

Is there any way around this, given that refactoring the DLL isn’t an option. Or, is there a way to throttle BizTalk to only run one orchestration at any one time. (I’ve seen some hacks restricting the working pool to the number of processors, but this doesn’t seem to help. We can’t downgrade to a single-core machine!)

I would rather find a way of keeping the DLL happy (though I can’t think how) than throttle BizTalk – but if there is a way to throttle that would be an acceptable short-term solution whilst we discuss with the 3rd party. (who are a large organisation and really should know better!)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T16:10:49+00:00Added an answer on May 24, 2026 at 4:10 pm

    Even on a single core machine, BizTalk will run concurrent orchestrations.

    You could throttle the orchestration by implementing the singleton pattern in the orchestration.

    You do this by creating a loop in the orchestration and having two receive shapes, one before the start of the loop and one inside the loop.

    Both these receive are bound to the same inbound logical port.

    You create a correlation set which specifies something like BTS.MessageType and set the first receive shape to initiate the correlation and the second receive to follow the correlation.

    As long as the loop does not end you can guarantee that any message of a certain type will always be processed by the same instance of the orchestration.

    However, using singletons is a design decision which comes with drawbacks. For example, throughput suffers, and you have to ensure that your singleton cannot suspend, else it will create a block for all subsequent messages.

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am utilising a 3rd party .net dll, which I am making calls to.
I have this strange issue. Xcode target does not find my 3rd party mac
I have a web application project which utilises a set of 3rd party dll's.
I have an issue with a third-party COM+ DLL meant to be used from
I have the following in a 3rd party core header, which i would prefer
I have a project which depends on several 3rd party libraries, the project itself
I have the following XML, which is generated by a 3rd-party library: <PhoneNumbers> <PhoneNumber
I have an application, which uses some 3rd party libraries, for example Tesseract library.
We have a service on our 3rd party site which is configured to be
We have a 3rd party dll wich contains (among other things) our entities. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.