It is very much a staffing/support/maintenance question as well. If you want to read about it and form your own opinion, look at documents debating this such as
http://en.wikipedia.org/wiki/Convention_over_configuration http://feedblog.org/2007/05/30/configuration-and-convention-over-code/ Personally, I never use the xml documents if I can avoid it for building routes, i do not mind using it for ioc/di as in providing a registry and the components I need. I find this easier to visualize, test, code and provide additional functionality to. For the simple route from/validate/to : I really do not thing that matters much. On Jul 27, 2011, at 9:58 PM, Taariq Levack wrote: > Hi Robert > This is probably the wrong forum for this, but I think it's a matter of > personal preference for such simple use cases. > It's not as though you need java or even better, Scala, to do something that > cannot easily be done in XML. > > Taariq > > On 28 Jul 2011, at 2:05 AM, "Robert J. Liguori" <[email protected]> wrote: > >> Does the Camel community strongly advise using one DSL over another? >> >> What I need to do is built a simple route that validates XML files against >> XML Scemas. >> >> I don't know if I should be using the Spring DSL (e.g., >> http://camel.apache.org/validation.html) or the Java DSL (e.g., >> https://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ValidatingProcessorTest.java?view=co) >> >> Can someone please advise... that is, for building a simple app that does >> XML validation, which DSL should I be using in Camel? >> >> Thanks! >> >> -- >> Sincerely, >> Robert J. Liguori >> STG Technologies, Inc. >>
