On Sun, Aug 7, 2011 at 8:55 PM, Afkham Azeez <az...@wso2.com> wrote:
>
>  On Sun, Aug 7, 2011 at 6:38 PM, Rajika Kumarasiri <raj...@wso2.com>wrote:
>>>
>>>> Not really. There parsers which convert DSL into Java code. What we need
>>>> is to write a parser which is capable of LB config rules -> Java.
>>>>
>>>>
>>> :) yeah, theory again :)
>>>
>>
>> Yeah it's theory and what people do in practice too -
>> http://camel.apache.org/.
>>
>
> Can you please explain how this magically plugs into Carbon and makes all
> the changes all the configuration etc. with your generated Java code without
> any changes to Carbon, and how it happens simply by writing a parser?  Can
> you do a quick PoC and show how this is done?
>

Rajika the approach should be not about generating Java code but rather to
build a SynapseConfig object and other runtime artifacts such as AxisService
objects, Transport definitions etc. out of a new DSL. The first challenge is
to DESIGN a good DSL. *That* is the hardest part; implementation (as Azeez
notes) may require code changes (I'll bet in the form of some custom
mediators) but honestly the hard part is creating the right language.

Sanjiva.
-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman & CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to