Re: How to improve throughput by grouping messages in a Transaction (in JMS)

2015-11-25 Thread prajath
Hi , I tried to use BatchMessageListenerContainer with camel still it is picking up single message from queue per transaction, could you please let me know what I am doing wrong here. Here is my code snippet Look like BatchMessageListenerContainer not deployed in Maven central. I have copie

Re: How to improve throughput by grouping messages in a Transaction (in JMS)

2015-11-18 Thread Antonin Stefanutti
It should be in spring-batch-integration. > On 18 Nov 2015, at 18:52, deepak_a wrote: > > Hi, > > I have made a thorough search but unable to find > docs.spring.io/spring-batch/apidocs/org/springframework/batch/container/jms/BatchMessageListenerContainer.html > > in the spring-batch/spring-ba

Re: How to improve throughput by grouping messages in a Transaction (in JMS)

2015-11-18 Thread deepak_a
Hi, I have made a thorough search but unable to find docs.spring.io/spring-batch/apidocs/org/springframework/batch/container/jms/BatchMessageListenerContainer.html in the spring-batch/spring-batch-core library. (although the javadocs says its available) I don't see the package org/springframewo

Re: How to improve throughput by grouping messages in a Transaction (in JMS)

2015-11-18 Thread Antonin Stefanutti
I don't know of any public / shareable example of setting a custom MessageListenerContainer unfortunately. That being said, from the Camel route standpoint, you should write something like: from://jms?consumerType=Custom&messageListenerContainerFactoryRef=… This is documented in http://camel.a

Re: How to improve throughput by grouping messages in a Transaction (in JMS)

2015-11-18 Thread deepak_a
Hi, Thanks for the reply, the XA connection factory is in place, Can you pls point to an example on how to override the default messageListener? (I have checked in forum - I am not able to see anyone done this in the past) regards D -- View this message in context: http://camel.465427.n5.nab

Re: How to improve throughput by grouping messages in a Transaction (in JMS)

2015-11-18 Thread Antonin Stefanutti
You could use BatchMessageListenerContainer [1] instead of DefaultMessageListenerContainer. An option to provide a specific MessageListenerContainer is to used the 'consumerType' parameter from the JMS component and set it to 'Custom' and provide the option 'messageListenerContainerFactoryRef'

Re: How to improve throughput by grouping messages in a Transaction (in JMS)

2015-11-18 Thread deepak_a
Hi, As mentioned in my previous post - I am developing a bridge that will set b/w ActiveMQ and TIBCO EMS. My aim is to use a XATransactionManager (like Atomikos) that will be common for the JMS Session that will consume from ActiveMQ and the JMS Session that will be publish to TIBCO EMS. With th

Re: How to improve throughput by grouping messages in a Transaction (in JMS)

2015-11-16 Thread deepak_a
Thanks, but I would have to compromise on performance right? Because of the additional hop / intermediate queue? regards, D -- View this message in context: http://camel.465427.n5.nabble.com/How-to-improve-throughput-by-grouping-messages-in-a-Transaction-tp5773344p5773916.html Sent from the C

Re: How to improve throughput by grouping messages in a Transaction (in JMS)

2015-11-16 Thread Claus Ibsen
Use batch-sjms with a local TX to do N messages into a 1 message and send that to a queue, in a TX which it supports today. Then from the new queue you can consume with XA, eg use an intermediate queue in between. On Mon, Nov 16, 2015 at 10:34 AM, deepak_a wrote: > Hi Jakub, > > Thanks for the

Re: How to improve throughput by grouping messages in a Transaction (in JMS)

2015-11-16 Thread deepak_a
Hi Jakub, Thanks for the reply, that's unfortunate because XA is a must for me, and to improve performance I need to group number of messages in a Transaction. Is there a work around some one can suggest - would using Spring-batch help achieve this? Any suggestions will be helpful. regards D

Re: How to improve throughput by grouping messages in a Transaction (in JMS)

2015-11-12 Thread Jakub Korab
Hi Deepak, The SJMS Batch component is included in the same library, but it's a different Component implementation specifically for consuming batches of messages. It works using local JMS transactions only, and does not integrate with XA. Jakub On 12/11/15 11:59, deepak_a wrote: Thanks Cla

Re: How to improve throughput by grouping messages in a Transaction (in JMS)

2015-11-12 Thread deepak_a
Thanks Claus, The dependency looks exactly same as SJMS, does this mean SJMS has been enhanced/re-branded as SJMS-batch? in version 2.16? org.apache.camel camel-sjms x.x.x Also can you pls point me to the Javadoc? I can only see Javadoc available for 2.15. I need to chec

Re: How to improve throughput by grouping messages in a Transaction (in JMS)

2015-11-12 Thread Claus Ibsen
See http://camel.apache.org/sjms-batch.html On Thu, Nov 12, 2015 at 12:24 PM, deepak_a wrote: > All, > > I read the below link - and it appears this lets me batch messages during > consumption or publication > http://camel.apache.org/sjms.html > i.e. (multiple messages in one transaction). > > Bu

Re: How to improve throughput by grouping messages in a Transaction (in JMS)

2015-11-12 Thread deepak_a
All, I read the below link - and it appears this lets me batch messages during consumption or publication http://camel.apache.org/sjms.html i.e. (multiple messages in one transaction). But unfortunately this does not support XA (I am using Atomikos as Transaction Manager) https://issues.apache.o