camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From souciance <>
Subject Re: Any issues having Camel Processor doing all the Works
Date Fri, 12 Aug 2016 13:29:33 GMT

Yes it can be done in the processor but I find the code is easier to read
in dsl form. Also, I can easily change the dsl to something else (change
endpoint or predicate) much easier than rewrite the code in a processor.
There are things you get that you don't in a processor, easier way to
communicate with systems, message formats, protocols and easier to handle
errors and completion and do simple processing using other languages like
groovy. I only do processors if it is something I want to hide or
complicate enough to warrant a processor.


On Thu, Aug 11, 2016 at 6:51 PM, JamesG [via Camel] <> wrote:

> Hi,
> Instead of doing the routing using DSL, web service calling with CXF
> component, enriching, intercepting, etc , why not just have a Processor and
> put all the java codes there? For a Camel beginner, this seems pretty much
> easier to get the things done (definitely for those with java background),
> but I am not sure how effective or correct this approach is.
> Below is a sample scenario:
> 1)  Call a web service to retrieve some result.
> 2)  Based on the result, decide whether to proceed calling another
> service.
> If I would to achieve the above through Processor, it's merely few lines
> of codes.
> But if I'm using DSL to do it, the work is going to be more (cxf endpoint,
> enrich, when, simple).
> Appreciate any advises and comments.
> Thanks in advance.
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> Processor-doing-all-the-Works-tp5786330.html
> To start a new topic under Camel - Users, email
> To unsubscribe from Camel - Users, click here
> <>
> .
> <>

View this message in context:
Sent from the Camel - Users mailing list archive at
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message