You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by Jon Anstey <ja...@gmail.com> on 2008/09/25 22:43:57 UTC
Spring vs. Java DSL
Hi all,
Figured I'd ask before going any deeper into this :) If any one knows off
hand a piece of Java DSL that isn't available in the Spring DSL, please add
a comment in CAMEL-745. I'd really like to get any important bits in before
the 1.5 release.
I'm going to do more comparison of the two tomorrow.
--
Cheers,
Jon
http://janstey.blogspot.com/
RE: [SPAM] Spring vs. Java DSL
Posted by Claus Ibsen <ci...@silverbullet.dk>.
BTW: http://issues.apache.org/activemq/browse/CAMEL-126
Martin Krasser submitted a patch that added some nice DSL for easier and more readable configuration.
I am not sure maybe the Spring DSL is out-of-sync.
However maybe one of the unit tests could be ported to camel-spring and using spring DSL style so we can see what is/if any is missing.
Med venlig hilsen
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk
-----Original Message-----
From: Jonathan Anstey [mailto:janstey@gmail.com]
Sent: 29. september 2008 13:58
To: camel-dev@activemq.apache.org
Subject: Re: [SPAM] Spring vs. Java DSL
Thanks for the feedback Claus!
Claus Ibsen wrote:
> Hi
>
> 1)
> I can only think of the error handler stuff we have in java DSL. In Spring you should use the errorHandler attribute and define it as plain spring beans.
>
This one has been around for a while. I'm thinking that this is a lower
priority item though since we can do all the errorhandler stuff now with
Spirng beans, like you've said... its not as pretty as it could be but
it works. :)
> 2)
> And I think we have a minor "name not the same" issue:
> - Java DSL: exception(MyBusinesssException.class).to("xxx");
> - Spring DSL: <onException>
>
> Maybe we should try to get the 2 names as the same?
>
> onException sounds as the best suited DSL name to me.
>
Yeah, thats a quick one I should slip in!
> 3)
> I am sure there are others we have missed.
>
I'm sure of it. Haven't got around to any deeper digging yet though -
been buried in AIX stuff...
> 4)
> I would love that we improve the <package> or to allow setting 1..N classes instead or ref to spring ids. The <package> is sometimes a bit to "magic" for new users. Something to consider for Camel 2.0
>
Great idea. I'll create a ticket for 2.0
> Also when doing unit testing it would be great to be sure only YOU route is loaded and not all in the same package.
>
I guess this would be solved by item 4 - I'll make a note of this in the
ticket.
>
> Med venlig hilsen
>
> Claus Ibsen
> ......................................
> Silverbullet
> Skovsgårdsvænget 21
> 8362 Hørning
> Tlf. +45 2962 7576
> Web: www.silverbullet.dk
> -----Original Message-----
> From: Jon Anstey [mailto:janstey@gmail.com]
> Sent: 25. september 2008 22:44
> To: camel-dev@activemq.apache.org
> Subject: [SPAM] Spring vs. Java DSL
>
> Hi all,
>
> Figured I'd ask before going any deeper into this :) If any one knows off
> hand a piece of Java DSL that isn't available in the Spring DSL, please add
> a comment in CAMEL-745. I'd really like to get any important bits in before
> the 1.5 release.
>
> I'm going to do more comparison of the two tomorrow.
>
>
Re: [SPAM] Spring vs. Java DSL
Posted by Jonathan Anstey <ja...@gmail.com>.
Thanks for the feedback Claus!
Claus Ibsen wrote:
> Hi
>
> 1)
> I can only think of the error handler stuff we have in java DSL. In Spring you should use the errorHandler attribute and define it as plain spring beans.
>
This one has been around for a while. I'm thinking that this is a lower
priority item though since we can do all the errorhandler stuff now with
Spirng beans, like you've said... its not as pretty as it could be but
it works. :)
> 2)
> And I think we have a minor "name not the same" issue:
> - Java DSL: exception(MyBusinesssException.class).to("xxx");
> - Spring DSL: <onException>
>
> Maybe we should try to get the 2 names as the same?
>
> onException sounds as the best suited DSL name to me.
>
Yeah, thats a quick one I should slip in!
> 3)
> I am sure there are others we have missed.
>
I'm sure of it. Haven't got around to any deeper digging yet though -
been buried in AIX stuff...
> 4)
> I would love that we improve the <package> or to allow setting 1..N classes instead or ref to spring ids. The <package> is sometimes a bit to "magic" for new users. Something to consider for Camel 2.0
>
Great idea. I'll create a ticket for 2.0
> Also when doing unit testing it would be great to be sure only YOU route is loaded and not all in the same package.
>
I guess this would be solved by item 4 - I'll make a note of this in the
ticket.
>
> Med venlig hilsen
>
> Claus Ibsen
> ......................................
> Silverbullet
> Skovsgårdsvænget 21
> 8362 Hørning
> Tlf. +45 2962 7576
> Web: www.silverbullet.dk
> -----Original Message-----
> From: Jon Anstey [mailto:janstey@gmail.com]
> Sent: 25. september 2008 22:44
> To: camel-dev@activemq.apache.org
> Subject: [SPAM] Spring vs. Java DSL
>
> Hi all,
>
> Figured I'd ask before going any deeper into this :) If any one knows off
> hand a piece of Java DSL that isn't available in the Spring DSL, please add
> a comment in CAMEL-745. I'd really like to get any important bits in before
> the 1.5 release.
>
> I'm going to do more comparison of the two tomorrow.
>
>
RE: [SPAM] Spring vs. Java DSL
Posted by Claus Ibsen <ci...@silverbullet.dk>.
Hi
1)
I can only think of the error handler stuff we have in java DSL. In Spring you should use the errorHandler attribute and define it as plain spring beans.
2)
And I think we have a minor "name not the same" issue:
- Java DSL: exception(MyBusinesssException.class).to("xxx");
- Spring DSL: <onException>
Maybe we should try to get the 2 names as the same?
onException sounds as the best suited DSL name to me.
3)
I am sure there are others we have missed.
4)
I would love that we improve the <package> or to allow setting 1..N classes instead or ref to spring ids. The <package> is sometimes a bit to "magic" for new users. Something to consider for Camel 2.0
Also when doing unit testing it would be great to be sure only YOU route is loaded and not all in the same package.
Med venlig hilsen
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk
-----Original Message-----
From: Jon Anstey [mailto:janstey@gmail.com]
Sent: 25. september 2008 22:44
To: camel-dev@activemq.apache.org
Subject: [SPAM] Spring vs. Java DSL
Hi all,
Figured I'd ask before going any deeper into this :) If any one knows off
hand a piece of Java DSL that isn't available in the Spring DSL, please add
a comment in CAMEL-745. I'd really like to get any important bits in before
the 1.5 release.
I'm going to do more comparison of the two tomorrow.
--
Cheers,
Jon
http://janstey.blogspot.com/