You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by hschoeneberg <sc...@informatik.uni-wuerzburg.de> on 2011/11/02 14:29:24 UTC
JMS Publish-Subscribe Message Redelivery
Hello everyone,
I am working a message-driven client-server-application and recently
migrated my project from pure JMS-messaging to messaging via Camel. The
messaging has been working reliably so far and during the migration-process
my JMS-infrastructure remained unchanged (broker configuration etc.), but
ever since I switched to Camel I am experiencing an odd behaviour when
consuming messages from a topic:
Whenever I let the server publish a message to a topic, all subscribers
receive this message many times (> 20). I am surely missing something, but I
wonder why this has been working without the Camel layer. Do I have to set a
special ExchangePattern? Or Acknowledge-Mode?
I am using Camel 2.8.1 with ActiveMQ 5.4.2, configured as an persistent
embedded broker within the JVM hosting the server-app.
This is my code for publishing to the topic:
This is my camel-configuration for the server:
And the camel-configuration for the client:
Any ideas what could cause the message re-delivery?
Thank you very much in advance,
Hendrik Schöneberg
--
View this message in context: http://camel.465427.n5.nabble.com/JMS-Publish-Subscribe-Message-Redelivery-tp4958062p4958062.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: JMS Publish-Subscribe Message Redelivery
Posted by hschoeneberg <sc...@informatik.uni-wuerzburg.de>.
Ah, awesome, now it works like a charm - thank you very much for your quick
help!
Greetings,
Hendrik Schöneberg
--
View this message in context: http://camel.465427.n5.nabble.com/JMS-Publish-Subscribe-Message-Redelivery-tp4958062p4958330.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: JMS Publish-Subscribe Message Redelivery
Posted by Claus Ibsen <cl...@gmail.com>.
You have concurrent consumers set to 20
<property name="concurrentConsumers" value="20" />
Then impacts when consuming from topics. You should not use concurrent
consumers on topics.
On Wed, Nov 2, 2011 at 3:40 PM, hschoeneberg
<sc...@informatik.uni-wuerzburg.de> wrote:
>
> Claus Ibsen-2 wrote:
>>
>> Hi
>>
>> Your configuration files is missing from the mail.
>>
>>
>
> Sorry, fixed that in my original post.
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/JMS-Publish-Subscribe-Message-Redelivery-tp4958062p4958256.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
Re: JMS Publish-Subscribe Message Redelivery
Posted by hschoeneberg <sc...@informatik.uni-wuerzburg.de>.
Claus Ibsen-2 wrote:
>
> Hi
>
> Your configuration files is missing from the mail.
>
>
Sorry, fixed that in my original post.
--
View this message in context: http://camel.465427.n5.nabble.com/JMS-Publish-Subscribe-Message-Redelivery-tp4958062p4958256.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: JMS Publish-Subscribe Message Redelivery
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Your configuration files is missing from the mail.
On Wed, Nov 2, 2011 at 2:29 PM, hschoeneberg
<sc...@informatik.uni-wuerzburg.de> wrote:
> Hello everyone,
>
> I am working a message-driven client-server-application and recently
> migrated my project from pure JMS-messaging to messaging via Camel. The
> messaging has been working reliably so far and during the migration-process
> my JMS-infrastructure remained unchanged (broker configuration etc.), but
> ever since I switched to Camel I am experiencing an odd behaviour when
> consuming messages from a topic:
>
> Whenever I let the server publish a message to a topic, all subscribers
> receive this message many times (> 20). I am surely missing something, but I
> wonder why this has been working without the Camel layer. Do I have to set a
> special ExchangePattern? Or Acknowledge-Mode?
>
> I am using Camel 2.8.1 with ActiveMQ 5.4.2, configured as an persistent
> embedded broker within the JVM hosting the server-app.
>
> This is my code for publishing to the topic:
>
>
>
> This is my camel-configuration for the server:
>
>
>
>
> And the camel-configuration for the client:
>
>
>
> Any ideas what could cause the message re-delivery?
> Thank you very much in advance,
>
> Hendrik Schöneberg
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/JMS-Publish-Subscribe-Message-Redelivery-tp4958062p4958062.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/