Re: [feature request] Reporting startup failure

2015-01-09 Thread Willem Jiang
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:

Re: Check endpoints available without looking into the endpoints cache

2015-01-09 Thread Willem Jiang
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)

Re: S3 route problem when access key and secret key are in URI

2015-01-09 Thread Willem Jiang
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:

Re: http client - javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

2015-01-09 Thread Willem Jiang
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:

Re: http client - javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

2015-01-09 Thread salemi
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

Re: Irrecoverable faults

2015-01-09 Thread Willem Jiang
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

Re: [feature request] Reporting startup failure

2015-01-09 Thread Claus Ibsen
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

Re: onException is ignored

2015-01-09 Thread Willem Jiang
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

Re: onException is ignored

2015-01-09 Thread Claus Ibsen
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

Re: Help: FTP/SFTP File Delete Problem and FTP/SFTP Polling Problem

2015-01-09 Thread Claus Ibsen
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

Re: [SQL COMPONENTE] CamelSqlGeneratedKeyRows has a bug?

2015-01-09 Thread Grzegorz Grzybek
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

Re: [SQL COMPONENTE] CamelSqlGeneratedKeyRows has a bug?

2015-01-09 Thread fabrizio.spataro
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());

error in reading FaceBook Endpoints

2015-01-09 Thread vs_mahesh
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

Re: Help: FTP/SFTP File Delete Problem and FTP/SFTP Polling Problem

2015-01-09 Thread Claus Ibsen
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

Irrecoverable faults

2015-01-09 Thread James Green
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

How to implement Camel Request/Reply on a topic with multiple services?

2015-01-09 Thread Alex Paransky
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

onException is ignored

2015-01-09 Thread James Green
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();

Re: Help: FTP/SFTP File Delete Problem and FTP/SFTP Polling Problem

2015-01-09 Thread yeandone
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

S3 route problem when access key and secret key are in URI

2015-01-09 Thread Shing Hing Man
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

Re: [SQL COMPONENTE] CamelSqlGeneratedKeyRows has a bug?

2015-01-09 Thread Grzegorz Grzybek
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

Check endpoints available without looking into the endpoints cache

2015-01-09 Thread rsoleto
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

Time consuming route starting at FTP endpoint

2015-01-09 Thread neil Stevens
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

[feature request] Reporting startup failure

2015-01-09 Thread Chris Melikian
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

Re: Http4 Component - 2.14 - Set Request Timeout

2015-01-09 Thread Willem Jiang
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

Rest DSL: org.apache.camel.ExchangeTimedOutException: The OUT message was not received within: 20000 millis

2015-01-09 Thread Ettoregia
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

Re: [SQL COMPONENTE] CamelSqlGeneratedKeyRows has a bug?

2015-01-09 Thread fabrizio.spataro
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.

RE: Time consuming route starting at FTP endpoint

2015-01-09 Thread Morgan Hautman
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]

Re: Http4 Component - 2.14 - Set Request Timeout

2015-01-09 Thread IgnatiusReilly
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