Camel File Cluster

2015-07-09 Thread Андрей Карев
Hi! I'm developing app using camel and stuck with problem. I'm trying to build cluster with file consumer. They lokk the same directory on NAS and I want achieve the result when if one server fails, other continue processing files. From here:

Re: Oracle Procedure Calls with Camel

2015-07-09 Thread Claus Ibsen
Hi Take a look at camel-mybatis which can call stored procedures. You can find examples on their project site, and also in SO such as http://stackoverflow.com/questions/15666856/calling-oracle-stored-procedures-with-mybatis On Thu, Jul 9, 2015 at 4:19 PM, deekayzain deekayz...@gmail.com wrote:

Throttling and custom exception handling

2015-07-09 Thread Serge Smertin
Greetings! Given: ServiceA that is used by multiple applications and has rate limits on certain endpoints. In cases when global rate limiting exceeded, ServiceA throws exception with X seconds delay. Throttled Camel route with concurrent consumers that submits a request to that certain endpoint

Re: Camel Execution Exception

2015-07-09 Thread MC
Thanks Claus. Please see the attached screenshot. http://camel.465427.n5.nabble.com/file/n5769064/Screen_Shot_2015-07-09_at_12.png -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Execution-Exception-Hiding-message-payload-details-tp5769004p5769064.html Sent from the

Re: readSize option JDBC component not working for split

2015-07-09 Thread fxthomas
okay , it worked . Thanks -- View this message in context: http://camel.465427.n5.nabble.com/readSize-option-JDBC-component-not-working-for-split-tp5769042p5769060.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Execution Exception

2015-07-09 Thread Claus Ibsen
Hi You can turn off logging the message history with errorHandler(defaultErrorHandler().logExhaustedMessageHistory(false)); See bottom of http://camel.apache.org/message-history.html But we could likely add some easy configuration to keep part of the message history with the route stack-trace

Re: Problem from Java DSL to Spring DSL

2015-07-09 Thread MC
Hi Claus, I replied to this question a couple of days ago with a similar question, but I am not sure why it is not showing up. Thats why I posting it again. I apologize if it is duplicate. Is it possible to use a random Java Constant or enum in headerName of setHeader in spring dsl. I tied with

Re: Camel Execution Exception

2015-07-09 Thread MC
Thank you very much Claus, this really helps. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Execution-Exception-Hiding-message-payload-details-tp5769004p5769066.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel 2.14/Netty: How to add ByteArrayDecoder to ServerChannelPipeline?

2015-07-09 Thread Willem Jiang
There are quit different change between the Netty3.x and Netty4.x. That is why we create a new camel component camel-netty4[1] for it. So I think you can just need to change the camel-netty to camel-netty4 and use the scheme netty4 in your camel route. -- Willem Jiang Red Hat, Inc. Web:

readSize option JDBC component not working for split

2015-07-09 Thread fxthomas
hello, I tried using the readSize option in the JDBC , but does not work. Is it that it won't work because I am using split with StreamList . I just want to get row By row from a DB , but i want only the first 10 rows. Currently it gets all the rows . Me code as below.

Re: Dynamic Routes aadition in Standalone application

2015-07-09 Thread fxthomas
okay, so if you say if i can add using the camelcontext i need not restart the application again ? -- View this message in context: http://camel.465427.n5.nabble.com/Dynamic-Routes-aadition-in-Standalone-application-tp5769018p5769041.html Sent from the Camel - Users mailing list archive at

Re: MDC logging does not work with camel.routeId anymore

2015-07-09 Thread Claus Ibsen
Hi I had a deep look inside camel-core to see if we can improve this, and found a possible way. However its a core change so will only do this in next release .. if possible https://issues.apache.org/jira/browse/CAMEL-8944 On Thu, Jul 9, 2015 at 8:37 AM, Claus Ibsen claus.ib...@gmail.com

Re: MDC logging does not work with camel.routeId anymore

2015-07-09 Thread Claus Ibsen
Hi Thanks I have just had a look from the support case from RH. I can see that you do it a bit wrong, when you add onCompletion to the exchange, from the onCompletion - eg kinda like 2 times. This causes the problem as when you do that the onCompletion, as your processor is called from on

Re: MDC logging does not work with camel.routeId anymore

2015-07-09 Thread rwijngaa
Yes, i messed the example up a bit. The original route had no onCompletion tag and the routeId also was not printed. Luckilly i can work around it by doing a normal processor like: and in the route : -- View this message in context:

Re: MDC logging does not work with camel.routeId anymore

2015-07-09 Thread Claus Ibsen
Hi Yes from within a onCompletion it would work. On Thu, Jul 9, 2015 at 10:05 AM, rwijngaa rino.van.wijngaar...@gmail.com wrote: Yes, i messed the example up a bit. The original route had no onCompletion tag and the routeId also was not printed. Luckilly i can work around it by doing a

Dynamic Routes aadition in Standalone application

2015-07-09 Thread fxthomas
hello, I have write some code to start camel in Standalone mode , with some routes . But how do I make the roue addition dynamic without restarting the camel instance. I will be updating the route dynamically based on some triggers in my application. Looking at the standalone approach I dont

Re: Dynamic Routes aadition in Standalone application

2015-07-09 Thread Claus Ibsen
Hi Yes you can add/remove routes when Camel is running using the api on camel context. To remove a route you must stop it first. On Thu, Jul 9, 2015 at 1:09 PM, fxthomas felix.tho...@gmail.com wrote: okay, so if you say if i can add using the camelcontext i need not restart the application

missing requirement org.apache.cxf.bundle

2015-07-09 Thread chaituu
we are migrating to latest jboss fuse .when i try to deploy existing service to latest jboss fuse then getting below exception,.what is the bundle i need to install? Error executing command: Error installing bundles: Unresolved constraint in bundle idemployeeService [323]: Unable to

Re: Dynamic Routes aadition in Standalone application

2015-07-09 Thread Claus Ibsen
See the api on CamelContext where you can add routes. On Thu, Jul 9, 2015 at 10:42 AM, fxthomas felix.tho...@gmail.com wrote: hello, I have write some code to start camel in Standalone mode , with some routes . But how do I make the roue addition dynamic without restarting the camel

Accessing HttpClient from JettyHttpComponent

2015-07-09 Thread Stephen.CTR.Chappell
Hi - I'm migrating some legacy code from Camel 2.8.3 up to 2.15.2. Previously I was able to access a Jetty HttpClient like so: JettyHttpComponent jettyComponent = (JettyHttpComponent) this.context.getComponent( CamelHttpProxy.JETTY_COMPONENT_NAME); HttpClient =

Re: Camel File Cluster

2015-07-09 Thread Serge Smertin
Hi Andrey, You should create a route policy that would listen for cluster join/leave requests OR use special components that allow running a route on single node in cluster. For route policy option, you can use either ZooKeeper -

Re: readSize option JDBC component not working for split

2015-07-09 Thread Claus Ibsen
Hi Try with statement.maxRows=10 On Thu, Jul 9, 2015 at 1:15 PM, fxthomas felix.tho...@gmail.com wrote: hello, I tried using the readSize option in the JDBC , but does not work. Is it that it won't work because I am using split with StreamList . I just want to get row By row from a DB ,

Re: Oracle Procedure Calls with Camel

2015-07-09 Thread deekayzain
Thanks Jacek. your post is using Spring-jpa. we dont have any way to call stored procedures in camel-jdbc or camel-sql of latest release. Please confirm. regds, deekayzain -- View this message in context: