Hi, Peter.
Thank you for bringing this requirement to the table even though we don't
have this feature in Tuscany yet.
First of all, I think it's a valid requirement to support context
propagation for service invocations, especially for remote service over a
protocol such as SOAP or JMS.
By my experience, we need to have the following pieces:
a) The invocation message should be able to convey context (as headers) in
addtion to the business data (body) accross wirings
b) Binding extensions will be responsible to exchange context between the
binding-specific protocol and the SCA component infrastructure.
c) Context can be produced and consumed by interceptors and
binding/component extensions.
d) Need some API to allow applications to produce/consume context in certain
scopes.
Any contributions are welcome.
Thanks,
Raymond
----- Original Message -----
From: "Peter Cousins" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, September 12, 2006 1:25 PM
Subject: Binding Context?
I want to access context information specific to a binding in my server
component implementation in Tuscany.
Examples of binding specific context are: JMS queue name or message
properties, HTTP headers, and so on. JBI/JSR208 use the NMR message
header to provide access to such information. Celtix provides a thread
local context object to provide such access.
The usage scenario where I would need this is when my server component
is a router for other services and needs to route based upon this
information.
Is there a threadlocal for it? Is there already a standard way of doing
this across all bindings, or is it "binding proprietary"? I didn't see
this in other bindings unless I am missing something.
Any pointer to examples or source code showing how this is supported, or
suggestions on adding it would be appreciated.
Thanks...PC
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]