synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hiranya Jayathilaka <hiranya...@gmail.com>
Subject Re: Extending the Synapse Evaluator Framework
Date Wed, 08 Sep 2010 04:43:26 GMT
On Mon, Sep 6, 2010 at 10:57 PM, Ruwan Linton <ruwan.linton@gmail.com> wrote:
> I guess we do not have any other option than adding another reference from
> the EvaluatorContext to the envelope, properties or any required attribute
> in the message context. Alternatively we could add a reference to the axis2
> message context and the synapse message context properties as a generic
> properties map, with a slightly better transparency.

Yeah this will allow some room for change in the future.

Thanks,
Hiranya

>
> Thanks,
> Ruwan
>
> On Mon, Sep 6, 2010 at 8:10 PM, Hiranya Jayathilaka <hiranya911@gmail.com>
> wrote:
>>
>> On Mon, Sep 6, 2010 at 5:46 PM, Supun Kamburugamuva <supun06@gmail.com>
>> wrote:
>> > How about abstracting out the EvaluatorContext. Then we can have two
>> > implementations at transport level and synapse level.
>>
>> That's another solution I thought about. But there are some potential
>> problems associated with this approach as well.
>>
>> If we introduce a Synapse level EvaluatorContext, which should reside
>> in synapse-core, then the corresponding evaluator implementations
>> should also reside in synapse-core. So basically we will have some
>> evaluators in synapse-commons and some evaluators in synapse-core.
>> Then the problem is how do we write a proper configuration factory
>> impl which knows how to instantiate these different evaluators.
>> Currently the evaluator config factory resides in synapse-commons. So
>> it can't see any other evaluators available in synapse-core.
>>
>> Thanks,
>> Hiranya
>>
>> > Thanks,
>> > Supun..
>> >
>> > On Mon, Sep 6, 2010 at 10:25 AM, Hiranya Jayathilaka
>> > <hiranya911@gmail.com>
>> > wrote:
>> >>
>> >> Hi Folks,
>> >>
>> >> Currently our evaluator framework can only evaluate followings:
>> >>
>> >> 1. URLs and URL fragments
>> >> 2. Query parameters
>> >> 3. Transport headers
>> >>
>> >> I think it would be great if we can extend the framework to support
>> >> evaluating of message context properties and SOAP envelope content.
>> >> The easiest way to implement this is perhaps to include the Synapse
>> >> message context in the Evaluator context. That will enable plenty of
>> >> room for any future extensions as well. But since the evaluator
>> >> framework resides in the commons module we cannot take any
>> >> dependencies on the Synapse core.
>> >>
>> >> So it seems the only way to support this requirement is by adding a
>> >> properties map and a reference to the SOAPEnvelope in the
>> >> EvaluatorContext. Unfortunately, from a design perspective this is not
>> >> a very solution. So WDYT?
>> >>
>> >> Thanks
>> >> --
>> >> Hiranya Jayathilaka
>> >> Senior Software Engineer;
>> >> WSO2 Inc.;  http://wso2.org
>> >> E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
>> >> Blog: http://techfeast-hiranya.blogspot.com
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
>> >> For additional commands, e-mail: dev-help@synapse.apache.org
>> >>
>> >
>> >
>> >
>> > --
>> > Tech Lead, WSO2 Inc
>> > http://wso2.org
>> > supunk.blogspot.com
>> >
>> >
>> >
>>
>>
>>
>> --
>> Hiranya Jayathilaka
>> Senior Software Engineer;
>> WSO2 Inc.;  http://wso2.org
>> E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
>> Blog: http://techfeast-hiranya.blogspot.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
>> For additional commands, e-mail: dev-help@synapse.apache.org
>>
>
>
>
> --
> Ruwan Linton
> Software Architect & Product Manager, WSO2 ESB; http://wso2.org/esb
> WSO2 Inc.; http://wso2.org
>
> Lean . Enterprise . Middleware
>
> phone: +1 408 754 7388 ext 51789
> email: ruwan@wso2.com; 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
>



-- 
Hiranya Jayathilaka
Senior Software Engineer;
WSO2 Inc.;  http://wso2.org
E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message