I got the exception just like this:
org.apache.camel.FailedToCreateRouteException: Failed to create route route1:
Route(route1)[[From[direct:in?concurrentConsumers=2]] - [Be... because of
Failed to resolve endpoint: direct://in?concurrentConsumers=2 due to: Failed to
resolve endpoint:
You can use applicationContext.getBean(name) to look up the endpoint that you
want to use.
The applicationContext can be got from SpringCamelContext.
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
You can use raw()[1] to wrap the access key and secret key to avoid the
encoding of URI.
[1]https://camel.apache.org/configuring-camel.html#ConfiguringCamel-Configuringparametervaluesusingrawvalues,egsuchaspasswords
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog:
You can setup the sslContext by implementing a HttpClientConfigurer[1].
[1]https://camel.apache.org/http4#HTTP4-ConfiguringApacheHTTPClientDirectly
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter:
Hi,
Thanks for your respond. My problem is that I am running in a container and
there is api that return the sslcontext to me and I have to use the provided
sslcontext. See the code below.
SSLContext sslContext = SSLUtilityFactory.createSSLContext();
How can I tell https4 to use the sslcontext
Current Camel ErrorHandler just provides a way to let you handle the error.
Even it provides retry mechanism, you still can do some work for the
Irrecoverable error.
With the ControlBus[1], you can stop the route which has the irrecoverable
faults.
If you want to stop the message, you can
Hi
Can you double check the logs as Camel should report invalid options.
On Fri, Jan 9, 2015 at 3:14 PM, Chris Melikian ch...@melikian.net wrote:
Hi,
I'm running 2.14.0 and I had a route which I'd changed from the seda to
direct endpoint. I left a ?concurrentConsumers=2 on the URI using the
If the Exception is thrown from the source() endpoint, the onException error
handler won’t work as you expected.
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem
On
Since you use transactions then sending a message to a JMS queue is
also rolled back, and hence the onException appears to not send the
message to the account not found queue. But its because the tx is
rolled back.
You can define a 2nd jms component, eg using a different name than
jms, that does
Try with newer release, there may have been a bug fix
On Fri, Jan 9, 2015 at 6:47 PM, yeandone willcours...@gmail.com wrote:
HI, Claus.
Thanks for the prompt reply! I am using Camel 2.12. I also tried adding
aync=true in controlbus
to
Hi Fabrizio
here's what is wrong with your example:
- to uri=jdbc://mysql / means you're using JDBC component, not SQL
component
- so you should use setHeader headerName=CamelRetrieveGeneratedKeys,
not setHeader headerName=CamelSqlRetrieveGeneratedKeys
- you should also use
Of course! I never want to use out message but reading example code (posted
by Grzegorz Grzybek) i suppose that *CamelSqlGeneratedKeyRows * variable set
into it.
code:
// assertions of the response
assertNotNull(out);
assertNotNull(out.getOut());
Hi ,
I have the following ruoute to integrate with Facebook APIs,
*route id=READINBOX
from
uri=facebook://getAccounts?oAuthAppId=**amp;oAuthAppSecret=***2d0bae49d37afec5
/
log logName=INPUT
Hi
What version of Camel do you use?
Also you can try set async=true on the controlbus
On Fri, Jan 9, 2015 at 8:05 AM, yeandone willcours...@gmail.com wrote:
Hi, All.
I have an issue deleting a file with delete=true from a SFTP consumer. My
route looks like the following:
route
Should we avoid issuing these?
We are implementing some checks that ask, for example, Is the customer
allowed to do this? And if the answer is no we're treating this as
irrecoverable.
Map this to irrecoverable according to Camel in Action Ch 5, Error
Handling. Yet this chapter barely touches
So, I have a number of services. Each service handles a type of unique
Request. However, the service needs to examine the request before
knowing if it can service it. The client want's the request serviced, but
does not care to know who did the servicing.
I was thinking of using (ActiveMQ
Project is Spring based with Camel 2.14 and the following configuration:
onException(AccountNotFoundException.class)
.log(Account Not Found. Message
discarded.).to(jms:queue:RouterAccountNotFound).stop();
HI, Claus.
Thanks for the prompt reply! I am using Camel 2.12. I also tried adding
aync=true in controlbus
to uri=controlbus:route?routeId=A_Routeamp;aync=trueamp;action=stop /
It does help delete the file, but it has some issues with polling. Until
the file get deleted and control bus
I am using Camel 2.14.1
When I build a S3 route and specify the accessKey and secretKey in the URI, I
got the following exception.(Note that I have URL encoded my secret key so that
+ is replaced by %2B. )
String awsURLTemplate=aws-s3://%s?accessKey=%ssecretKey=%sregion=eu-west-1;
final
Fabrizio
I've fixed your example. dont' use CamelSqlGeneratedKeyRows, use
CamelGeneratedKeyRows because you're using JdbcComponent, not
SqlComponent.
Plus - this test aserts availability of headers in out - right, but those
are copied to in of next (e.g. setBody) processor.
regards
Grzegorz
Hi all,
I'm using Camel 2.12.3.
I've the same problem that Aida says with hasEndpoint() method in thread
[1]. I have been looking for some solution using lookup methods of Camel
context registry but without luck.
The main problem is registry has endpoints that I declare in Spring context
but
Hello,
I'm after some advice from people more experienced in Camel than
myself on what the correct way is to structure my route(s). My
program essentially does the following:
1. Downloads file from FTP server
2. Saves a copy of the file (for auditing purposes)
3. Does some additional (time
Hi,
I'm running 2.14.0 and I had a route which I'd changed from the seda to
direct endpoint. I left a ?concurrentConsumers=2 on the URI using the Java
DSL.
When I started camel the application would start but would shut down again
immediately. It took me a while to realise that there was a
You can use the option httpClient.connectTimeout=6 to set the request
timeout.
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem
On January 9, 2015 at 4:09:39
Hi All,
I'm facing a problem which I guess stems from the usage of MEP.
Actually when I hit the http://localhost:8082/user/ by using a PUT verb, the
client hangs for
20 millis and then an exception is raised (see below). I thought that by
specifying the exchangePattern=InOnly
Camel should
Thanks guy!
I finally solved my problem
King regards!
--
View this message in context:
http://camel.465427.n5.nabble.com/SQL-COMPONENT-CamelSqlGeneratedKeyRows-has-a-bug-tp5761113p5761529.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hi Neil,
Maybe try to connect via SFTP since there is no data timeout value for it
(under timeout option : For SFTP there is no data timeout.)
http://camel.apache.org/ftp2.html
Hope this helps!
Regards
Morgan
-Original Message-
From: neil Stevens [mailto:neilstevens2...@gmail.com]
Willem,
Thanks for your reply. I just noticed that the issue was something else... I
was about to delete the message!
Thanks anyway.
Ignatius
--
View this message in context:
http://camel.465427.n5.nabble.com/Http4-Component-2-14-Set-Request-Timeout-tp5761479p5761533.html
Sent from the
28 matches
Mail list logo