Paul Fremantle wrote:
The message is going to end up going somewhere. For example, I want
the message to go to Amazon s3, but I already have an endpoint
definition for S3. I could just set the To address to be
http://s3.amazon.com/whatever.
However, this doesn't take advantage of the endpoint definitions.
Does that make sense?
Not really. :) But let's forget endpoints for a minute, and imagine
that I have a standard mediation sequence that sends a copy of a message
to a notarization server, gets back a "notarized" ID code, then adds
that code to a header in the message and sends it to its destination.
Original msg (in pseudo-xml):
<header>
<wsa:To>http://s3.amazon.com/foo</wsa:To>
<signature>signed To header and body</signature>
</header>
<body>stuff</body>
I want to be able to do something like:
synapseContext.setSynapseTarget("notarizationSeq");
synapseContext.setMessage(msg);
synapse.send(synapseContext);
The post-mediation msg that would get sent to Amazon might look like this:
<header>
<wsa:To>http://s3.amazon.com/foo</wsa:To>
<signature>signed To header and body</signature>
<notarizationID notary="URL">52</notarizationID>
</header>
<body>stuff</body>
Can I do something like that, where the Synapse server doesn't have any
preconfiguration about the actual destinations of the messages?
--Glen
On 7/27/07, Glen Daniels <[EMAIL PROTECTED]> wrote:
Hi Paul:
Paul Fremantle wrote:
When I inject a new message into Synapse (using the API).
At the moment messages go into the main sequence. However, it would be
nice to specify a sequence or endpoint for them to be targeted to.
I'm thinking maybe just setting the To address using a uri scheme
like: "sequence:stockquote" or "endpoint:sq".
What do you all think?
Doesn't this assume that the message itself is "synapse-aware"? What
about cases where I want to inject a message that is actually going
wsa:To Amazon S3?
--Glen
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]