Transactionality in SCA – Part 1 – The Basics

Customers sometimes ask me how they can enable transactionality in their WESB and WPS Modules and Mediation Modules. I normally point them at this article (and this article also has a lot of good material).

There’s a lot of content in both of those, but here are the really salient points:

  • In SCA, you don’t need code to manage your transactions. Instead, you need to define your components and operations appropriately, and then set up various SCA qualifiers to bind components together transactionally, so they operate together in a global transaction.
  • By default, SCA components run in their own local transaction, so the first thing you need to do is identify which components need to be bound together and set their implementation’s SCA Transaction qualifier to True.
  • You also need to identify each component or import that needs to join the global transaction of the upstream component (the component that connects to it), and set the Join Transaction qualifier on its interface to True to join the two transactions together.
  • You may want to make sure the Suspend Transaction qualifier on any references which connect to downstream components is set to False – although this is the default if it is not present. This makes sure the transaction is not broken at this point.

That’s pretty much it, although you may want to look at the two articles above for more information.

I’ll be publishing another article next week on how you can refactor your interfaces to get your transaction boundaries exactly where you want them.

Advertisements

3 Responses to Transactionality in SCA – Part 1 – The Basics

  1. John Rutter says:

    That ties in with something I had recently posted, about transaction handling in SOA/BPM/ESB environments, on the Smart421 blog.

    http://smart421.wordpress.com/2008/07/28/business-transaction-handling/

    Nice to see some concrete examples of how to make it all work…

  2. Pingback: Transactionality in SCA - Part 2 - Refactoring Interfaces « SOA Tips ‘n’ Tricks

  3. Designer Stuart Hughes, from Liverpool, Merseyside, took ten months to make the diamond iPhone after it was commissioned by an anonymous Australian businessman.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: