You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by de...@accenture.com on 2011/07/22 14:58:47 UTC

Multiple DSL - good practice

Hi All,

Is it a good practice to use Multiple DSLs. Eg- Spring DSL & Java DSL.

Thanks,
Deepa



  ________________________________
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.

Re: Multiple DSL - good practice

Posted by Willem Jiang <wi...@gmail.com>.
There are some pros and cons between the Spring DSL and Java DSL that 
you may already know.
Here is another note for it, when you are planing to deploy the camel 
route artifacts into the container ( OSGi or WebContainer). It will be 
handy if you using Spring DSL.

On 7/22/11 8:58 PM, deepa.va@accenture.com wrote:
> Hi All,
>
> Is it a good practice to use Multiple DSLs. Eg- Spring DSL&  Java DSL.
>
> Thanks,
> Deepa
>
>
>
>    ________________________________
> This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
>


-- 
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
          http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Re: Multiple DSL - good practice

Posted by Claus Ibsen <cl...@gmail.com>.
On Fri, Jul 22, 2011 at 2:58 PM,  <de...@accenture.com> wrote:
> Hi All,
>
> Is it a good practice to use Multiple DSLs. Eg- Spring DSL & Java DSL.
>

There is no best practice on that. But I think people either use one
or the other, to keep it similar/consistent so the developers more
easily can understand and maintain the source.

The Camel runtime do not care in which DSL you have use to create the routes.

Some of the GUI tooling works currently with XML only. For example the Fuse IDE.
http://fusesource.com/products/fuse-ide-camel/

For people who want GUI tooling that may tip the preference for XML over Java.
Notice the Fuse IDE can attach to any runtime Camel app and visualize
the route, regardless which DSL was used to create the route. Its only
the GUI designer which currently only supports XML (to be enhanced in
the future).


> Thanks,
> Deepa
>
>
>
>  ________________________________
> This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/