Hi Steve,
Sure, you can do that. Your processor/component is just a Java class - you can
do whatever you want. I wrote a component that encapsulated a bunch of external
interactions that the "user" was not directly aware of.
There are lifecycle callbacks from Camel itself that can help you do
You could also use something like cxfrs to do the REST call and have it
unmarshal your JSON return.
That would make it easier to integrate with Mark's idea to use Camel's error
handling and retries.
-Steve
> -Original Message-
> From: Mark Nuttall
> Sent: Friday, September 10, 2021
I am using Camel 3.7.4 and have a route that sends data to Kafka. I am trying
to add the clientID parameter to it and getting the following error message:
org.apache.camel.FailedToCreateRouteException: Failed to create route
outgoingMessageRoute at: >>>
I got stuck on the same point... there is a good explanation in the Camel 3
migration guide:
https://camel.apache.org/manual/latest/camel-3-migration-guide.html
Search for "advice" in that page.
-Steve
> -Original Message-
> From: mail4...@gmail.com
> Sent: Thursday, June 24, 2021
Is the Process1 -> Processor2 route logically separate from Processor3 ->
Processor4? If yes, put them in separate routes. Mark the "put on Google
PubSub" InOnly then it won't wait for a reply.
-Steve
> -Original Message-
> From: David Shubert
> Sent: Tuesday, April 20, 2021 11:20 AM
>
Is it possible that Spring is not finding your endpoint class?
-Steve
On 9/16/19, 6:55 AM, "thomas.thi...@telekom.de"
wrote:
Hi Alex,
1. I found this webpage but the links (e.g. createProducer()) goes to "page
not found".
2. Stupid question: how and where to do this?
Perfect - thank you!!!
> -Original Message-
> From: Claus Ibsen
> Sent: Thursday, June 27, 2019 1:00 PM
> To: users@camel.apache.org
> Subject: Re: How to use simple expression in properties file?
>
> Hi
>
> Yeah use $simple{header.xxx}
>
> On Thu, Jun
t;
-Steve
> -Original Message-
> From: Claus Ibsen
> Sent: Wednesday, June 26, 2019 11:41 PM
> To: users@camel.apache.org
> Subject: Re: How to use simple expression in properties file?
>
> On Wed, Jun 26, 2019 at 11:49 PM Steve Huston
> wrote:
> >
> &g
Is it possible to put a simple() expression in a properties string and have
Camel evaluate it at run time?
Here's what I'm trying to do:
- Set a message header ID with a value I want to use later
- Use .toD("{{event.sink}}")
application.properties can then have something like:
event.sink =
Camel JMS transfers JMS properties to Camel message headers.
https://stackoverflow.com/questions/22561717/camel-adding-properties-to-a-message-in-spring-dsl
So check exchange.getIn().getHeader(...) in your processor.
-Steve
> -Original Message-
> From: Marx, Peter
> Sent: Tuesday, May
I'm not sure I understand what your statement is saying, but I think that if
you set the exchange to InOnly when it is received, the ReplyTo will not affect
it.
-Steve
On 4/16/19, 7:58 AM, "sagheer ahmed" wrote:
Hi Team,
Just looking for some help with the below issue. Please
My assumption is that camel-core (all in one) doesn't have any negative affect
on Camel itself and that breaking it up is motivated by a benefit to those
projects that want to reduce size.
If that is true, then I recommend leaving camel-core as it is in 2.x - that
reduces surprises to all
"Integrate everything!"
> -Original Message-
> From: Claus Ibsen
> Sent: Tuesday, February 19, 2019 10:52 AM
> To: users@camel.apache.org
> Subject: [DISCUSS] - Apache Camel 3 - A new tagline
>
> Hi
>
> As part of Apache Camel 3, we are working on a new modern website (yeah
> its long
ow JMS handles it.
> What if the end produces multiple exchanges?
You've exceeded my knowledge on this... sorry.
> Steve Huston writes:
>
> > I have also found it a bit difficult to get a straight answer on this
> > but my understanding at this point is that if the exchange gets
I have also found it a bit difficult to get a straight answer on this but my
understanding at this point is that if the exchange gets to the end of the
route and is an InOut, the Out from the last endpoint goes back to the 'from'
starting point.
http://camel.apache.org/request-reply.html
Hi Paul,
I'd like to clarify a few things that are not clear to me from your message.
- Is this a reference to ActiveMQ broker network? I'm guessing form the
terminology and port numbers that it is.
- Is there a way you could assign the "old" names (possibly as secondary names)
to the new
I don't have a REST-specific example to show you, but in other scenarios I've
done, after unmarshalling to POJO:
.to("bean-validator://validate-request")
If the validator annotations find a violation an exception will be thrown.
-Steve
> -Original Message-
> From: Richard James
I am using Camel 2.19.1 and have a question on @PropertyInject with a default
value. I have the following:
public class MyStuff {
@PropertyInject(value="testVal", defaultValue="")
private String testVal;
...
}
When this class is instantiated and injected, if there is no 'testVal" in
I'm not a super expert in this area, but since you are building a @Component
you could maybe use the async capability of Camel processors.
There's a decent explanation and example in the Camel in Action 2nd edition.
-Steve
> -Original Message-
> From: Robson Vargas Farias
I don’t have example code readily available, but one possible approach would be:
- Send job request REST/JSON and get job ID back
- Add ID to a queue of not-yet-done jobs
- A separate route pulls job IDs from the not-done queue and polls
- If not done, put it back on the queue
- If done,
The only concept you're missing is that 'from' is not a one shot event. The
route keeps running, taking whatever messages become available from the source
queue.
-Steve
> -Original Message-
> From: Mahesha999 [mailto:abnav...@gmail.com]
> Sent: Friday, June 16, 2017 10:19 AM
> To:
That depends totally on what MyProcessor does with the data and where it puts
it.
> -Original Message-
> From: solomon [mailto:austin.solomon...@gmail.com]
> Sent: Tuesday, June 06, 2017 8:21 AM
> To: users@camel.apache.org
> Subject: How to Extract json key, value from MQTT payload
>
>
Did you run it multiple times in succession for each scenario? The file system
cache may skew your timing if you just run it once.
> -Original Message-
> From: RichardChen [mailto:richard.c...@spsoft-cn.com]
> Sent: Monday, March 06, 2017 5:13 AM
> To: users@camel.apache.org
> Subject:
Re properties...
Sure, there is a long description at http://camel.apache.org/properties.html
There are a number of mechanisms for getting the properties injected, depending
on how you package and deploy your application. Here is one discussion:
You could inject property values from outside the routes.
> -Original Message-
> From: Erol [mailto:e...@erol.si]
> Sent: Thursday, February 23, 2017 6:01 AM
> To: users@camel.apache.org
> Subject: Passing parameters from routes to components
>
> Hello all
>
> I'm dynamically building
I apologize for the delay responding to this.
I was able to get this working but parsing out the URI info separately, like
the below. It's from a test program so it has some assumptions about what it
should be getting.
-Steve
---
String httpRequest =
There are lots of examples on the web.
Could you show what you have tried?
-Steve
> On Dec 15, 2016, at 3:47 AM, navajyothi wrote:
>
> HiWe are using apache cxf as restful service. We have to pass parameter like
> ID to the User Service.It would be as
>
You can set the ROUTE_STOP property to true.
http://camel.apache.org/intercept.html has more info.
> -Original Message-
> From: sa_james [mailto:sa_remin...@hotmail.com]
> Sent: Tuesday, December 06, 2016 10:01 AM
> To: users@camel.apache.org
> Subject: What to do with Null Body messages?
You could create a separate Exchange for each message taken from the queue and
use a producer template to send them.
http://camel.apache.org/producertemplate.html
-Steve
> -Original Message-
> From: sa_james [mailto:sa_remin...@hotmail.com]
> Sent: Tuesday, December 06, 2016 9:55 AM
>
You could have a bean or processor check the data and set the next route in a
header. Then use .toD after the bean/processor to send to the proper next step.
Steve Huston
(sent from my iPhone - please excuse brevity and typos)
> On Nov 30, 2016, at 9:27 AM, spurcell <scot
eturn context().getInjector().newInstance(MyRouteBuilder.class);
>
>
>
> On Wed, Nov 16, 2016 at 6:51 PM, Steve Huston <shus...@riverace.com>
> wrote:
> > Thank you for the responses thus far. I still have some confusion and an
> observation.
> >
> >
t; > > Subject: Re: Seeking to understand properties
> > >
> > > Hi
> > >
> > > context().getProperty("dataFile");
> > >
> > > is not property placeholders. Its just generic key/value pairs on
> > > CamelContext. See th
e");
>
> is not property placeholders. Its just generic key/value pairs on
> CamelContext. See the javadoc of the API.
>
> For property placeholders take a look at http://camel.apache.org/using-
> propertyplaceholder.html
>
> On Tue, Nov 15, 2016 at 11:58 PM, Steve Hu
I tried @PropertyInject also, but I also have some confusion on where to set
the property values. If I set these routes up in spring boot I can get a
properties file pretty reliably, but with plain camel test support, not sure
how to make this happen.
> -Original Message-
> From:
I am struggling to understand something I fear is very basic, but I just don't
see it. Hoping someone can help me understand this.
Properties... I can use them in route definitions, but I don't seem to be able
to obtain their values in regular Java code.
Example (using Camel 2.16.3):
I have a
eam and convert to string. Can you try it that way
>
> Regards
> Aravind
>
> > On Oct 25, 2016, at 4:41 PM, Steve Huston <shus...@riverace.com> wrote:
> >
> > Thank you for replying, Aravind!
> >
> > Also interesting - I had a LoggingFeature
> wrote:
>
> > I can't say where the response body is being consumed, but try
> > enabling stream caching[1] and see what you get.
> >
> > Doug
> >
> > [1] http://camel.apache.org/stream-caching.html
> >
> > On Tue, Oct 25, 2016 at 9:31 AM, Steve
l.apache.org
> Subject: Re: Trouble accessing Response body content from RESTful call
>
> I can't say where the response body is being consumed, but try enabling
> stream caching[1] and see what you get.
>
> Doug
>
> [1] http://camel.apache.org/stream-caching.html
>
> On
I am developing a route that calls a web service; said web service returns a
JSON string (Not always the same type represented). I have this in a route as:
from(myqueue)
.bean(SetupCxfRequest.class) // This sets up parameters for REST
API call
I'm only guessing sort of, but try the camel context id.
You could get a more definitive answer by letting it log DEBUG everything, find
the lines you want from your route(s) and note the name they're logged under,
then just use that.
-Steve
> -Original Message-
> From: ychawla
Try log:set DEBUG
> -Original Message-
> From: ychawla [mailto:premiergenerat...@gmail.com]
> Sent: Thursday, October 20, 2016 11:34 AM
> To: users@camel.apache.org
> Subject: Camel Log - Karaf
>
> Hello All,
> I have a log statement in a camel route that is at the DEBUG loggingLevel:
>
I would start by chasing this as a firewall/routing problem with your network
infrastructure people.
> -Original Message-
> From: ganga_camel [mailto:ganga...@gmail.com]
> Sent: Friday, October 14, 2016 9:37 AM
> To: users@camel.apache.org
> Subject: RE: Rest DSL with restlet Component,
Sounds like a firewall (or similar) configuration issue.
If not, please try posting more about what's not working - error messages, etc.
-Steve
> -Original Message-
> From: ganga_camel [mailto:ganga...@gmail.com]
> Sent: Friday, October 14, 2016 9:00 AM
> To: users@camel.apache.org
>
t;
> Hi Steve
>
> I think I wrote a comment on stackoverflow for you.
>
> Best
> Souciance
>
> On Mon, Oct 10, 2016 at 11:15 AM, Steve Huston [via Camel] <
> ml-node+s465427n5788554...@n5.nabble.com> wrote:
>
> > I posted this in stackoverflow, hoping
I posted this in stackoverflow, hoping for some expertise here. I would really
appreciate some hel from the experts.
Camel route with AMQP consumer runs ok in Eclipse, hangs in karaf
http://stackoverflow.com/q/39939964/240342?sem=2
Thanks!
-Steve
I believe for the "to" routing, it's plain text... if you want to use a header
value you need to use dynamic to:
http://camel.apache.org/how-to-use-a-dynamic-uri-in-to.html
http://www.davsclaus.com/2015/10/apache-camel-216-released-top-10.html
-Steve
> -Original Message-
> From:
You can use quartz2 or timer in camel, but I’m not sure how to incorporate the
reset on count.
-Steve
> On Sep 30, 2016, at 3:39 PM, Vik wrote:
>
> I want to invoke another camel route based on a counter value or after
> certain time has passed whichever happens
Put that info in a bean?
> -Original Message-
> From: dpravin [mailto:pravin.deshm...@gmail.com]
> Sent: Monday, September 12, 2016 9:32 PM
> To: users@camel.apache.org
> Subject: JMS Component configurations
>
> Hello All,
>
> We are in process of implementing hundreds of routes that
I'm not an expert on the camel you show, but try changing:
from(String.format("netty4:udp://localhost:%d?sync=false=true",
to
from(String.format("netty4:udp://0.0.0.0:%d?sync=false=true",
> -Original Message-
> From: Steve973 [mailto:steve...@gmail.com]
> Sent: Wednesday, August 31,
http://camel.apache.org/testing.html
> -Original Message-
> From: Vanshul.Chawla [mailto:vanshul.cha...@target.com]
> Sent: Tuesday, July 05, 2016 10:08 AM
> To: users@camel.apache.org
> Subject: Unit test case for XML DSL context and routes
>
> Hello All,
>
> We have some Camel code
Azure supports AMQP, you should be able to use the JMS component in Camel.
I think MS has learned that locking people onto one choice is not a good idea,
particularly with developers.
> -Original Message-
> From: jamie3 [mailto:jam...@gmail.com]
> Sent: Wednesday, June 22, 2016 10:29 AM
I am doing something like this, and plan to use a separate source file (like
below) that instantiates the route builders (that are in other sources) for
each set of routes that only vary by the properties.
When SCR sets this up at run time it injects the properties values into the
routes.
>
I use Camel SCR for this sort of thing. It works, but is probably not the only
way.
> -Original Message-
> From: souciance [mailto:souciance.eqdam.ras...@gmail.com]
> Sent: Friday, June 10, 2016 9:29 AM
> To: users@camel.apache.org
> Subject: Generic camel routes - multiple instances
>
I am relatively new to camel, but until you get more experienced replies, I'd
suggest your second path (replaceFromWith) but use something like
seda:mockKafka - then send your test messages to seda:mockKafka. I'm under the
impression that a mock can't produce a message, which is why you're
IBM MQ -> ActiveMQ is a separate activity from using camel, or are you already
using camel with IBM MQ?
-teve
> -Original Message-
> From: tanay94 [mailto:tanay.jos...@gmail.com]
> Sent: Friday, June 03, 2016 2:15 AM
> To: users@camel.apache.org
> Subject: IBM MQ to Active MQ migration
integration, that would be easier.
-Steve Huston
> -Original Message-
> From: miri eyni [mailto:miri.e...@sapiens.com]
> Sent: Monday, May 23, 2016 6:39 AM
> To: users@camel.apache.org
> Subject: Routing with logic
>
> hi
> i need to implement routing with
> I have 2 queues provided by third party provider 1.request queue, 2.reply
> queue
>
> using camel jms i will send request to request queue, so third party provider
> will push respective response to response queue.
Ok.
> I would to make these calls synchronous. so for each request send to
>
ot; to set up a Response
for REST.
-Steve
> -Original Message-
> From: Steve Huston
> Sent: Thursday, April 28, 2016 7:04 PM
> To: 'users@camel.apache.org' <users@camel.apache.org>
> Subject: Trouble sending a ByteBuffer to a mock
>
> I am using Camel 2.16.3. I h
"direct" is a component that's used to inject messages into a route:
http://camel.apache.org/direct.html
"start" and "update", from your examples, are names for "direct" endpoints.
-Steve
> -Original Message-
> From: polanki [mailto:varadaraja.pola...@pimco.com]
> Sent: Tuesday, May
llowed to have text message bodies written to it?
My searching for info related to that error has turned up only issues related
to CXF and REST and problems marshalling to XML/JSON.
Thanks,
-Steve Huston
> On Mon, Apr 25, 2016 at 2:28 PM Claus Ibsen <claus.ib...@gmail.com>
> wrote:
>
> > That is for the api documentation.
> >
> > Its the camel-restlet component that does the actual mapping from
> > restlet to camel exchange/message.
> >
> > On M
Subject: Re: Not seeing query params on REST DSL
>
> Apologies as I missed this.
>
> As far as I know, you need to explicitly register your query params. They are
> not automatically propagated.
>
> John
>
> On Mon, Apr 25, 2016 at 1:33 PM Steve Huston <shus...@riverace.com>
On the risk of aggravating people (sorry) popping this up to today's content...
any help is most welcome.
Thanks!
-Steve
> -Original Message-
> From: Steve Huston
> Sent: Wednesday, April 20, 2016 8:57 PM
> To: users@camel.apache.org
> Subject: Re: Not seeing query par
I am using Camel 2.16.3 and restlet.
-Steve
> On Apr 20, 2016, at 7:27 PM, John D. Ament <johndam...@apache.org> wrote:
>
> Steve
>
> Could you share your dependencies as well? Which rest runtime are you
> using?
> On Apr 20, 2016 17:12, "Steve Huston" <
I am using the REST DSL in a Camel SCR unit test. I have a route (being tested)
that will initiate a http request at this URL:
@Test
public void testRoutes() throws Exception {
context.addRoutes(new RouteBuilder() {
@Override
public void
I have this excerpt from a Camel route in blueprint XML:
...
> -Original Message-
> From: Kasim Sert (Ibtech-Software Infrastructure)
> [mailto:kasim.s...@ibtech.com.tr]
> Sent: Tuesday, November 17, 2015 4:23 AM
> To: users@camel.apache.org
> Subject: Using
a Response to get
the code from. After I changed the return type from String to Response, things
started working.
If it appears that I've got something confused still, I'm happy to hear about
it.
-Steve
> -Original Message-
> From: Steve Huston [mailto:shus...@riverace.com]
Thank you for the idea, Kalyan, but that didn’t work.
Is it true that there’s no access to the payload one it’s touched? I can see
the payload if no exception is thrown (e.g., a normal 200 response).
Thanks,
-Steve
> On Nov 3, 2015, at 1:56 AM, calyan.bandi wrote:
>
>
and parse manually
>
> HTH, Sergey
> On 02/11/15 16:15, Steve Huston wrote:
>> I put this up on stackoverflow... if you have cxfrs expertise, could you
>> please read this?
>>
>> How to access payload from REST 404 response in Camel cxfrs?
>> http://stackoverflow.com/q/33445686/240342?sem=2
>>
>> Thanks,
>> -Steve
>>
>
I put this up on stackoverflow... if you have cxfrs expertise, could you please
read this?
How to access payload from REST 404 response in Camel cxfrs?
http://stackoverflow.com/q/33445686/240342?sem=2
Thanks,
-Steve
hough I'm not sure right now what the syntax is with
> cxfrs:bean:webService, looks like from
> http://camel.apache.org/cxf-bean-component.html
>
> it is something like
> cxfrs:bean:webService?providers=#jackson
>
> Cheers, Sergey
> On 02/11/15 18:02, Steve Huston wrote:
&g
hough I'm not sure right now what the syntax is with
> cxfrs:bean:webService, looks like from
> http://camel.apache.org/cxf-bean-component.html
>
> it is something like
> cxfrs:bean:webService?providers=#jackson
>
> Cheers, Sergey
> On 02/11/15 18:02, Steve Huston wrote:
&g
> I cannot find any examples for setting up camel-cxf using blueprint, can
> someone point me the right direction?
> The one I have found uses spring, is there a way to not use spring for this
> component?
This is a stripped down blueprint XML file that works. If I stripped too much
and it
I am a relative novice in this area, but I did have some tests running in
Cucumber. To get the applicationcontext, see this stack overflow question:
http://stackoverflow.com/questions/4914012/how-to-inject-applicationcontext-itself
Once you have that, you can get the CamelContext like:
ample at
> http://camel.apache.org/amqp.html
>
> Could someone please point me in the right direction?
> Thank you,
> -Steve Huston
>
> I am deploying this in a blueprint container in karaf.
>
> My setup is:
>
>class="org.apache.qpi
I am trying to use AMQP queues as both the start and end of a route. I am
having trouble getting this to work, following the example at
http://camel.apache.org/amqp.html
Could someone please point me in the right direction?
Thank you,
-Steve Huston
I am deploying this in a blueprint container
0.9.1 which pulled in json-smart 1.2.
Once I removed the above camel-jsonpath dependency the older json-path
is not pulled any longer. That problem is gone. Now I have a context problem
in its place :-( I will research that.
Thank you for your help,
-Steve Huston
From: Steve Huston
77 matches
Mail list logo