Reply to Todd's comments on the Transactional .NET Adapter

Published 06 September 04 11:06 PM | christof claessens

Todd Sussman posted a few comments/requests on my Transactional .NET Adapter.  One of the things I was asked for several times already is whether it would be hard to make it work in a request/response way.  Now, to be honest, I did consider this when implementing.  A few random thoughts:

  • Since the adapter is transactional, and since .NET remoting does not support transactions: the code called by the adapter would always run in process in the same appdomain.  (I would need to do really funky things to do this otherwise.)
  • I would advice against doing too much work in the component called by the adapter; remember there's a transaction in progress!  Ideally the component would access some queue, database or other transactional backend system.  Don't start any actions that take a long time and could risk the transaction to time-out.
  • Don't start any new threads in your component unless you don't really need the transaction.  Any new threads would not retain the transaction context...  (Widbey would do a better job here.)
  • I decided not to promote request reponse too much since I felt that would raise the risk of blocking the worker thread too long.  I was convinced that people needing this functionality would better use another transport to correlate response messages with their request.  For example: dropping messages from within your .NET component back on a queue which is asynchronously read by the MQSeries or MSMQ adapter... 

Was I wrong?  Probably... I'd like to hear all comments you have on this.  If you feel you need to have request reponse on the transactional .NET adapter in a scenario, please let me know!

Note to myself: a few other enhancements that I could make:

  • load each custom client assembly in a separate appdomain, this would allow for:
    • separate security settings for each assembly
    • configurable .NET config file for each assembly
    • unloading of the appdomain, would prevent needing to restart the BizTalk Service to release an assembly handle
  • the request response I just discussed
  • provide user with multiple interfaces so they can choose to receive an XmlDocument, XmlReader or just the plain bytestream
Filed under:

Comments

# Peter said on September 13, 2004 09:35 AM:

Widbey would do a better job here. ??
Can you explain?
The new TransactionScope class of Whidbey is also bound to the thread

# Christof said on September 15, 2004 05:09 AM:

http://msdn2.microsoft.com/library/h84136b2.aspx

VS2005 knows the new executioncontext class which captures among other things the transaction context and can be copied to other threads.

Best regards!
Christof

# nick_celtac said on December 27, 2008 08:47 AM:

www.message_gettrocliv.com

# nick_eltous said on April 10, 2009 11:08 AM:

www.message_nopasdro.com

# Avril Simpson said on March 23, 2011 11:55 PM:

It was certainly interesting for me to read that article. Thanks for it. I like such topics and everything connected to this matter. I would like to read a bit more on that blog soon.

Avril Simpson    

<a href="milanescorts.com/">escort ed accompagnatrice asiatica milano</a>

# Julia Benedict said on April 29, 2011 02:14 PM:

Rather nice place you've got here. Thanx for it. I like such themes and anything connected to this matter. I would like to read a bit more soon.  

Julia Benedict    

<a href="www.pickescort.com/">girls escorts london</a>

# Motivation to lose weight said on April 8, 2012 09:53 AM:

AAA8bF Thanks so much for the blog.Really looking forward to read more. Much obliged.

# icon pack said on September 21, 2012 01:00 PM:

P.S. Please review <a href="yourmailkept.deviantart.com/.../Datenbank-Toolbar-Icons-312747604">Datenbank Toolbar Icons from yourmailkept</a>

# icons archive said on September 21, 2012 04:16 PM:

P.S. Please review <a href="tonoficons.deviantart.com/.../Avia-Software-Icons-286648041">Avia Software Icons from tonoficons</a>

# icon downloads said on September 21, 2012 11:14 PM:

 Interesting theme, I will take part. Together we can come to a right answer. I am assured.

<a href="www.hpixel.com/.../a>

# icon set said on September 23, 2012 08:59 AM:

 It is possible to fill a blank?

<a href="www.hpixel.com/.../a>

# icons collection said on September 23, 2012 01:14 PM:

 I to you will remember it! I will pay off with you!

<a href="www.hpixel.com/.../a>

# pjaksuhvd@gmail.com said on October 21, 2012 09:34 AM:

Affection, relationship, value, you should not unify visitors as much as a common hate available for a product.

TN Requin TN Pas Cher http://www.tnniketn2013.com/

# get icons said on December 13, 2012 12:11 AM:

P.S. Please review our <a href="http://ipad.militarydesign.biz">design portfolio</a> for Doors2012.

# download icons said on December 13, 2012 03:06 AM:

P.S. Please review our <a href="http://wp8design.org">design portfolio</a> for Doors2012.

# mxqxdauw@gmail.com said on December 17, 2012 11:27 PM:

No more male or female may well be worth a rips, together with the a person that is definitely got‘t earn you scream.

# sodhhmkdplm@gmail.com said on March 13, 2013 03:52 AM:

I have been taken this 2day diet pills for 1 week currently, I heard a whole lot about botanical slimming solution, I haven’t utilised eating plan tablets prior to ,so I had no thought which solution is productive, but I seems there are plenty of persons applying it not. So I wish to possess a try. Hope it performs great.

Leave a Comment

(required) 
(required) 
(optional)
(required)