Stripping off the ECID Header using Oracle Traffic Director by Simon Haslam

image 

My long-time followers will know that I like Oracle Traffic Director (OTD) a lot (and its Sun iPlanet heritage): it is a fast, stable and mature software load balancer.

OTD is available on Exalogic, with WebLogic Multi-Tenant, and more commonly now as a component of Oracle Java Cloud Service or SOA Suite Cloud Service.

Recently I was asked if OTD could strip the ECID HTTP header off inbound requests to SOA. Whilst I knew I could manipulate or remove headers, I hadn’t done that with ECID before… and it turns out that is not quite so straight-forward and there’s no documentation about it. Therefore last weekend I burnt quite a few midnight hours on this, along with one the Oracle Support OTD engineers in California, and we came up with a solution. Unfortunately, for non-technical reasons, this solution hasn’t gone into production but I’m confident it could, so thought I’d describe it here in case anyone else has the same requirment (I also suggested on the SR that a MOS note is written about it).

What is an ECID?

Firstly, let’s recap what an Execution Context Identifier (ECID) is. This is a unique ID, attached as the ECID-Context HTTP header, that is propagated through the various layers of an application stack to allow you to track and correlate requests. For example, if you are using SOA you can us Enterprise Manager (EM) Fusion Middleware Control (FMWC) to track all the steps and calls to other systems that a composite might make.

Typically a Fusion Middleware components will add a new ECID if one is not there, or pass it through, with or without manipulation if it is. OTD is a case in point – by default every request sent to an origin server will have an ECID, and if there wasn’t one on the inbound request OTD will generate one… this also alludes to the fact that the ECID-Context header is “special” for OTD.

What was the requirement?

This particular case involved an on-prem Oracle SOA platform calling our SOA CS platform repeatedly (1000s of times) as the source system processed a bulk feed. Transactions weren’t involved so every call to our SOA platform was essentially independent but, because the call already had an ECID corresponding to the instance on the source, this meant we had lots of instances with the same ECID, which in turn made EM FMWC unusable. So I was asked to remove the ECID, in that way either OTD or SOA (it didn’t matter which) would give each call a new, unique one. Read the complete article here.

PaaS Partner Community

For regular information on Oracle PaaS become a member in the SOA & BPM Partner Community for registration please visit www.oracle.com/goto/emea/soa (OPN account required) If you need support with your account please contact the Oracle Partner Business Center.

clip_image003 Blog clip_image005 Twitter clip_image004 LinkedIn image[7][2][2][2] Facebook clip_image002[8][4][2][2][2] Wiki

Technorati Tags: SOA Community,Oracle SOA,Oracle BPM,OPN,Jürgen Kress

About Jürgen Kress
As a middleware expert Jürgen works at Oracle EMEA Alliances and Channels, responsible for Oracle’s EMEA Fusion Middleware partner business. He is the founder of the Oracle SOA & BPM and the WebLogic Partner Communities and the global Oracle Partner Advisory Councils. With more than 5000 members from all over the world the Middleware Partner Community is the most successful and active community at Oracle. Jürgen manages the community with monthly newsletters, webcasts and conferences. He hosts his annual Fusion Middleware Partner Community Forums and the Fusion Middleware Summer Camps, where more than 200 partners get product updates, roadmap insights and hands-on trainings. Supplemented by many web 2.0 tools like twitter, discussion forums, online communities, blogs and wikis. For the SOA & Cloud Symposium by Thomas Erl, Jürgen is a member of the steering board. He is also a frequent speaker at conferences like the SOA & BPM Integration Days, JAX, UKOUG, OUGN, or OOP.

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

%d bloggers like this: