Camel with JTA, JMS and JPA: Exceptions during JPA commit/flush

2014-09-09 Thread Jörn Gersdorf
Hi camel experts, we have a problem with redeliveries/exception handling when an exception occurs within the JPA commit/flush at transaction end. In a camel route we are using JMS on the receiving side and JPA on the sink side. Transaction management is performed using JTA.

Re: Apachecamel_Netty

2014-09-09 Thread Claus Ibsen
The default codec is using java serialization. https://github.com/apache/camel/blob/master/components/camel-netty/src/main/java/org/apache/camel/component/netty/NettyConfiguration.java#L205 If you are sending text data then use text codec, by setting textline=true And you can set the encoding opti

Re: Apachecamel_Netty

2014-09-09 Thread Charles Moulliard
Hi Kavithaa, Can you provide us the camel that you are using and the stack trace generated please (gist) or a unit test to reproduce the issue ? Regards, On Wed, Sep 10, 2014 at 7:18 AM, Kavitha A. wrote: > Hi Team, > > > > Last two years I am working in camel project ,currently we are facin

Apachecamel_Netty

2014-09-09 Thread Kavitha A.
Hi Team, Last two years I am working in camel project ,currently we are facing one issue. Issue Details: 1. We are using tcp netty with default codec . 2. Client sending message with  ,this value is skipping in server side while reading the exchange message. 3.

Re: Multiple instances writing to the same file corrupts data

2014-09-09 Thread Henrique Viecili
http://en.wikipedia.org/wiki/Record_locking Henrique Viecili On 10 September 2014 02:11, karthik.subramanian2 < karthik.subramani...@target.com> wrote: > Team, > > I have a process which receives messages from an websphere MQ and then > marshals the data with Camel bindy into pipe delimited tex

Re: Accessing POST payload from cxfrs invocation

2014-09-09 Thread David
On Tue, Sep 9, 2014 at 11:52 AM, David wrote: > I have a configured cxf rsServer, which kicks off a camel route that then > passes the request along to another service configured as a cxf rsClient > endpoint. Both are POST operations. This mostly works well, except for the > POST payload being se

Multiple instances writing to the same file corrupts data

2014-09-09 Thread karthik.subramanian2
Team, I have a process which receives messages from an websphere MQ and then marshals the data with Camel bindy into pipe delimited text and then appends to an already existing text file. There are two JVMs in which the process is running. When i switch off the listener in one of the JVMs, the

Accessing POST payload from cxfrs invocation

2014-09-09 Thread David
I have a configured cxf rsServer, which kicks off a camel route that then passes the request along to another service configured as a cxf rsClient endpoint. Both are POST operations. This mostly works well, except for the POST payload being sent to the second service. The first service contains tw

Re: Camel CXF Jaxrs service implementation class's methods are not executing

2014-09-09 Thread Willem Jiang
camel-cxfrs consumer just need to route the message into camel route, if the implementation method is called, the camel route cannot process the request message any more. If you just want to call the implementation class’s method, you can use cxf-rs directly. -- Willem Jiang Red Hat, Inc. W

Re: Propagate SoapFault with simple Camel proxy

2014-09-09 Thread miguelfdez
I add some extra information: This is the SOAPFault generated by the ProxifiedService: http://service.admin.ws.my.company/"; xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";> soapenv:Server Missing valid token. And this is the stacktrace I see in the log: 14:4

Re: Apache Camel timeout during finding data through a CustomProcessor

2014-09-09 Thread rajiv.jain
Ok. I would like to investigate why the code works perfectly well outside of Apache Camel and as soon as we use Apache Camel the DAO takes longer. I am sure this is an issue with Apache Camel? Maybe some thread is being blocked. -- View this message in context: http://camel.465427.n5.nabble.c

Re: Camel CXF Jaxrs service implementation class's methods are not executing

2014-09-09 Thread vrahul
This became a code quality concern for us. Can you please explain that why cxf-rs server bean implementation behave is different with camel. is there any way i can implement cxf-rs services the same way as it is. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-CXF-Jaxr

Re: Apache Camel timeout during finding data through a CustomProcessor

2014-09-09 Thread Claus Ibsen
Hi If you use JMS then the default timeout for request/reply is 20 sec. See the JMS docs http://camel.apache.org/jms On Tue, Sep 9, 2014 at 1:01 PM, rajiv.jain wrote: > Hi > > I seem to get timeout errors after 20 seconds. I have a custom processor the > implements Processor. I inject a DAO and

Apache Camel timeout during finding data through a CustomProcessor

2014-09-09 Thread rajiv.jain
Hi I seem to get timeout errors after 20 seconds. I have a custom processor the implements Processor. I inject a DAO and when finding the data within the custom processor it takes longer to find the data on the Apache Camel side and it timeouts. If I run the same code without Apache Camel it runs

Missing source file

2014-09-09 Thread sr0bb0
Hi, I am new to Camel. What's the best approach to read one file (FileA in example below), and only enrich it with FileB if fileB exists, otherwise just use contents of fileA. Using XML... http://camel.apache.org/schema/spring"; autoStartup="true">

Re: Route Camel : Pass variables in a SQL query

2014-09-09 Thread Charles Moulliard
The header to be used to log the query is named 'CamelSqlQuery'. See the doc here : http://camel.apache.org/sql-component.html` On Mon, Sep 8, 2014 at 8:19 PM, sayed_india wrote: > Hello, > > I tried the below code and able to print the id, but not able to get the > required query. > > Pleas

Re: Idempotent consumer, removeOnFailure=true and exception handling

2014-09-09 Thread Chris Melikian
Thanks Claus. I did try it and with Camel debug logging on I expected to see the message LOG.debug("Removed from repository as exchange failed: {} with id: {}", exchange, messageId); from the org.apache.camel.processor.idempotent.IdempotentOnCompletion class and indeed the entry is not being

Re: I want to save the whole reply on disk an read the reply later ?

2014-09-09 Thread Frankiboy
Thanks a lot ;-) What im looking fore Frank -- View this message in context: http://camel.465427.n5.nabble.com/I-want-to-save-the-whole-reply-on-disk-an-read-the-reply-later-tp5756223p5756230.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel RabbitMQ acknowledges event though autoAck is set to false and there is an exception in the route

2014-09-09 Thread blr_developer
Thanks Claus Ibsen for looking into this. Let me know when this fix will be available. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-RabbitMQ-acknowledges-event-though-autoAck-is-set-to-false-and-there-is-an-exception-in-the-roe-tp5756207p5756229.html Sent from the Ca

camel-leveldb : U​n​a​b​l​e​ ​t​o​ ​c​o​n​f​i​r​m​ ​e​x​c​h​a​n​g​e​I​d

2014-09-09 Thread jmh
Hello, I'm using camel-leveldb (Camel 2.13) instead of hawtdb (Camel 2.7) for aggregation. However I see this warning message in my logs for each aggregation ended with success : WARN : U​n​a​b​l​e​ ​t​o​ ​c​o​n​f​i​r​m​ ​e​x​c​h​a​n​g​e​I​d​ ​[​I​D​-​N​R​B​N​R​W​0​2​2​0​A​-​5​0​7​7​1​-​1​4​1​

Re: I want to save the whole reply on disk an read the reply later ?

2014-09-09 Thread Pontus Ullgren
Hi You can use camel cache ( http://camel.apache.org/cache.html) for this purpose. Check example 8 in the documentation. However to be complete it should also contain an otherwise where the cached value is read from the cache. //Pontus On 9 Sep 2014 08:29, "Frankiboy" wrote: > > > > Can someone