Yeah, if it is a class mediator you have the access to the synapse
MessageContext so it is just a matter of calling,
synCtx.getSequence("$SEQ_NAME") to get hold of any defined or registry
looked up sequence.
Ruwan
On Tue, May 3, 2011 at 9:55 PM, Charith Wickramarachchi <
[email protected]> wrote:
> That is the version of Synapse you are using ?
> And you can also use messageContext.getSequence()
>
> thanks,
> Charith
>
> On Thu, Apr 21, 2011 at 5:16 AM, Abid Khan-EXT <[email protected]
> >wrote:
>
> > Hello Charith,
> >
> >
> >
> > I finally got time to look into this again, but the method
> > “getSynapseConfiguration()” is not available in
> >
> >
> >
> > messageContext.getEnvironment().getSynapseConfiguration()
> >
> >
> >
> > if I write that it give me compilation error.
> >
> >
> >
> > Thanks,
> >
> > Abid
> >
> >
> >
> > *From:* Charith Wickramarachchi [mailto:[email protected]]
> > *Sent:* Monday, April 04, 2011 3:45 PM
> > *To:* [email protected]
> > *Cc:* Abid Khan-EXT
> > *Subject:* Re: Help: how to invoke a Sequence from a class mediator
> >
> >
> >
> > You have access to the Synapse Configuration inside any Mediator.
> > If its a defined sequence in the configuration.
> > you can use.
> >
> messageContext.getEnvironment().getSynapseConfiguration().getDefinedSequences().get("Sequence
> > Name").
> >
> > If its coming from a registry.
> > you can use.
> > messageContext.getSequence("Sequence Name")
> >
> > thanks,
> > Charith
> >
> >
> > On Mon, Apr 4, 2011 at 10:13 PM, Abid Khan-EXT <[email protected]>
> > wrote:
> >
> > Hello
> >
> > I have a certain need for invoking a sequence from a class mediator,
> please
> > provide some hints,
> >
> > Thank,
> > Abid
> >
> >
> >
> >
> > --
> > Charith Dhanushka Wickramarachchi
> >
> > Software Engineer
> >
> > WSO2 Inc
> >
> > http://wso2.com/
> >
> > http://wso2.org/
> >
> >
> >
> > blog
> >
> > http://charithwiki.blogspot.com/
> >
> >
> >
> > twitter
> >
> > http://twitter.com/charithwiki
> >
> >
> >
>
>
>
> --
> Charith Dhanushka Wickramarachchi
> http://charithwiki.blogspot.com/
>
--
Ruwan Linton
Member, Apache Software Foundation; http://www.apache.org
<http://wso2.org>
phone: +94 11 282 7532
email: [email protected]; cell: +94 77 341 3097
blog: http://blog.ruwan.org
linkedin: http://www.linkedin.com/in/ruwanlinton
google: http://www.google.com/profiles/ruwan.linton
tweet: http://twitter.com/ruwanlinton