camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <>
Subject Re: Creating a Component that Calls Another Component
Date Wed, 16 Oct 2013 23:04:13 GMT
Wonder if there is a better way to share routes that are spread all over
your integration by using direct/seda/vm, etc than to try to merge
components into one.

Maybe you can post a more detailed example with sample routes to illustrate
what you're trying to solve?

On Wed, Oct 16, 2013 at 2:43 PM, kraythe . <> wrote:

> Greetings,
> I want to create a component that calls another component in essence.
> Specifically I have a remote REST based service that I call. I would like
> to wrap those calls in a component to reduce the route verbosity we are
> faced with. That means that I will need a component to call that service
> and do something like the following.
> to("myservice:doStuff?")
> The issue i am faced with is essentially this component needs all of the
> functionality of HTTP4 component, just different processing after the call
> and before the call. What is the best way to do this? Do I extend the HTTP4
> component? Is there a way to call the http4 component from inside my route?
> What is the best practice here. Currently there are the same 15 lines of
> route code all over the place and I would like to reduce that.
> *Robert Simmons Jr. MSc. - Lead Java Architect @ EA*
> *Author of: Hardcore Java (2003) and Maintainable Java (2012)*
> *LinkedIn: ***

*Christian Posta*
twitter: @christianposta

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message