You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Claus Ibsen <cl...@gmail.com> on 2009/06/25 07:35:40 UTC
Re: Problems with JMS messages being dropped by camel when restarting
the context
Hi
Stopping / shutting down is hard. We have debated this before and would in
the future look into how we can make it better.
Are you having AMQ embedded with Camel that you stop, or is AMQ a remote
broker?
On Wed, Jun 24, 2009 at 3:56 PM, Tim83 <ti...@roots.be> wrote:
>
> Here's the complete exception
>
> org.springframework.jms.InvalidDestinationException: Cannot publish to a
> deleted Destination: temp-queue://ID:56P3J-57576-1245848023626-0:0:2;
> nested
> exception is javax.jms.InvalidDestinationException: Cannot publish to a
> deleted Destination: temp-queue://ID:56P3J-57576-1245848023626-0:0:2
> at
>
> org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:277)
> at
>
> org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:168)
> at
> org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:474)
> at
> org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:539)
> at *Producer.confirm(ConfirmationProducer.java:26)
> at *Consumer.onMessage(*Consumer.java:48)
> at
>
> org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:543)
> at
>
> org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:482)
> at
>
> org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:451)
> at
>
> org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:323)
> at
>
> org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:261)
> at
>
> org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:982)
> at
>
> org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:974)
> at
>
> org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:876)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: javax.jms.InvalidDestinationException: Cannot publish to a
> deleted Destination: temp-queue://ID:56P3J-57576-1245848023626-0:0:2
> at
> org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:1597)
> at
>
> org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:227)
> at
>
> org.apache.activemq.ActiveMQMessageProducerSupport.send(ActiveMQMessageProducerSupport.java:241)
> at
> org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:597)
> at
> org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:574)
> at
> org.springframework.jms.core.JmsTemplate$3.doInJms(JmsTemplate.java:541)
> at
> org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:471)
> ... 12 more
>
>
> Best regards,
> Tim
> --
> View this message in context:
> http://www.nabble.com/Problems-with-JMS-messages-being-dropped-by-camel-when-restarting-the-context-tp24184908p24185284.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
--
Claus Ibsen
Apache Camel Committer
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus
Re: Problems with JMS messages being dropped by camel when restarting
the context
Posted by Claus Ibsen <cl...@gmail.com>.
On Thu, Jun 25, 2009 at 11:42 AM, Tim83<ti...@roots.be> wrote:
>
>
> Claus Ibsen-2 wrote:
>>
>> Hi
>> Stopping / shutting down is hard. We have debated this before and would in
>> the future look into how we can make it better.
>>
>> Are you having AMQ embedded with Camel that you stop, or is AMQ a remote
>> broker?
>>
>> Claus Ibsen
>> Apache Camel Committer
>>
>> Open Source Integration: http://fusesource.com
>> Blog: http://davsclaus.blogspot.com/
>> Twitter: http://twitter.com/davsclaus
>>
>>
>
>
> Active MQ is running remotely.
> Sad to hear that camel isn't able to handle these kinds of problems, as they
> can and will occur...
>
> Is there no way at all to prevent loss of messages caused by shutdown /
> restart?
There is a ticket related to this in JIRA titled - Graceful shutdown
or the likes.
Please use it to post comments / requirements.
>
> Best regards,
> Tim
> --
> View this message in context: http://www.nabble.com/Problems-with-JMS-messages-being-dropped-by-camel-when-restarting-the-context-tp24184908p24200138.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
--
Claus Ibsen
Apache Camel Committer
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus
Re: Problems with JMS messages being dropped by camel when
restarting the context
Posted by Tim83 <ti...@roots.be>.
Claus Ibsen-2 wrote:
>
> Hi
> Stopping / shutting down is hard. We have debated this before and would in
> the future look into how we can make it better.
>
> Are you having AMQ embedded with Camel that you stop, or is AMQ a remote
> broker?
>
> Claus Ibsen
> Apache Camel Committer
>
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
>
>
Active MQ is running remotely.
Sad to hear that camel isn't able to handle these kinds of problems, as they
can and will occur...
Is there no way at all to prevent loss of messages caused by shutdown /
restart?
Best regards,
Tim
--
View this message in context: http://www.nabble.com/Problems-with-JMS-messages-being-dropped-by-camel-when-restarting-the-context-tp24184908p24200138.html
Sent from the Camel - Users mailing list archive at Nabble.com.