Re: Transactional Route with JTA

2015-10-30 Thread Raul Kripalani
Alright. BTW, you also need to define a Resource Manager. In this repo is another set of examples: https://github.com/FuseByExample/camel-persistence-part2/blob/jboss-fuse-6.2/route-one-tx-manager/src/main/resources/OSGI-INF/blueprint/route-one-tx-manager.xml Regards, Raúl. On 30 Oct 2015 19:24,

Re: Camel cache across bundles in karaf

2015-10-30 Thread Matt Sicker
I know of two ways to do that: 1. Export the Endpoint as an OSGi service. 2. Use a middleware endpoint like JMS or some event queue. On 30 October 2015 at 03:46, Vanshul.Chawla wrote: > Hello All, > > Is Camel cache available across multiple bundles in Fuse? I.e. can we set > it in one bundle a

Re: Transactional Route with JTA

2015-10-30 Thread Christian Schneider
Hi Raul, thanks for the smx blueprint. The only difference I found was to use org.apache.activemq.jms.pool.JcaPooledConnectionFactory instead of the XaPooledConnectionFactory. I remember that I used this one for the tests in CXF JMS and it is the right one I think. So that should be a useful c

SocketException: Connection reset while using HTTP4 producer endpoint

2015-10-30 Thread Sai Arunachalam
Hi, I have a custom load balancer created using Camel that looks something like the following: from("jetty: https://0.0.0.0:443?matchOnUriPrefix=true&enableMultipartFilter=false ").loadBalance(new MyLoadBalancer()) .to("http4://localhost:?bridgeEndpoint=true&throwExceptionOnFailure=false

SocketException: Connection reset while using HTTP4 producer endpoint

2015-10-30 Thread Sai
Hi, I have a custom load balancer created using Camel that looks something like the following: from("jetty: https://0.0.0.0:443?matchOnUriPrefix=true&enableMultipartFilter=false ").loadBalance(new MyLoadBalancer()) .to("http4://localhost:?bridgeEndpoint=true&throwExceptionOnFailure=false

Re: Transactional Route with JTA

2015-10-30 Thread Raul Kripalani
Hey Christian, I had a look at your code and I think you need to grab the XaConnectionFactory from the OSGi Service Registry (or create one). Not sure if you're using ServiceMix or not, but here is how SMX makes these services available in the container: https://git-wip-us.apache.org/repos/asf?p=

Re: Transactional Route with JTA

2015-10-30 Thread Christian Schneider
I have now added more logging and see that I indeed have a JTA transaction and it seems to include the receive of the jms message. I also see that the transaction is rolled back when the error happens. So the only thing missing seems to be the redelivery. Any idea why that can happen? Christia

Re: Transactional Route with JTA

2015-10-30 Thread Christian Schneider
Hi Raul, thanks for the link. I think for the most part I already followed this. I created my own spring JtaTransactionManager in blueprint though. Not sure if this makes a difference. I switched it to use the PlatformTransactionManager that aries transaction provides. Still I get no redelivi

Re: Transactional Route with JTA

2015-10-30 Thread Raul Kripalani
Hi Christian, You need to plug in the JTA TransactionManager into the JMS consumer, so that the transaction is opened as part of the consumption. Otherwise, the transaction starts after the route kicks off and therefore doesn't cover the JMS consumption itself. Maybe this resource helps: https:/

Transactional Route with JTA

2015-10-30 Thread Christian Schneider
I am trying to set up a route that spans an XA transaction from a jms endpoint to a db based endpoint or to another JMS endpoint. If I do a route like this: from("jms:queue1").transacted().to("jms:queue2") Will the transaction then also include the receive of the JMS message? I have set up an

HTTP operation failed invoking https://someurl.com with statusCode: 400

2015-10-30 Thread Ishada
I have a requirement to use Apache Camel. I am trying to use Composed Message Processor pattern by using Camel. As you can see form the code I am setting the exchange with a String data which is as follows (121,487,78). And I am setting URI for each integer. Everything is working fine till the "Get

[ANNOUNCEMENT] Apache Camel 2.15.4 Released

2015-10-30 Thread Gregor Zurowski
The Apache Camel community announces the immediate availability of the new patch release Apache Camel 2.15.4. This release contains over 40 fixes applied in the past few weeks by the community on the Camel 2.15.x maintenance branch. The artifacts are published and ready for you to download [1] eit

Camel cache across bundles in karaf

2015-10-30 Thread Vanshul . Chawla
Hello All, Is Camel cache available across multiple bundles in Fuse? I.e. can we set it in one bundle and multiple bundles refer this? Vanshul