Hi,

I have a jms queue which store a system error messages. The consumer is a
bean which listen for messages and send an email. All work fine but when an
error occured in the bean, the message is resend but with no timeout. I set
recoveryInterval but it seem have no influence. Anyone have an idea ?



JMS QUEUE
-------------

<beans xmlns:jms="http://servicemix.apache.org/jms/1.0";
        xmlns:flpos="http://amix-tpv.com/flexpos";
        xmlns:amqpool="http://jencks.org/amqpool/2.0";
        xmlns:amq="http://activemq.org/config/1.0";>


        <jms:provider service="flpos:BackOfficeImportQueue"
                endpoint="jmsQueueProvider"
                destinationName="queue/flexPosBackOfficeData"
                connectionFactory="#connectionFactory" />

        <!-- END SNIPPET: provider -->


        <jms:consumer service="flpos:BackOfficeImportQueue"
                endpoint="jmsQueueConsumer"
                targetService="flpos:BackOfficeMailService" 
targetEndpoint="mail"
                synchronous="true" 
                transacted="jms" 
                
                recoveryInterval="40000"
                destinationName="queue/flexPosBackOfficeData"
                connectionFactory="#connectionFactory" />


        <amq:connectionFactory id="connectionFactory"
        
brokerURL="tcp://localhost:61616?jms.redeliveryPolicy.useExponentialBackOff=true&amp;jms.redeliveryPolicy.initialRedeliveryDelay=20000L&amp;jms.redeliveryPolicy.maximumRedeliveries=10"
/>

</beans>



MAIL BEAN
-------------

  /**
     * onMessageExchange : entry point for delivered messages
     */
    public void onMessageExchange(MessageExchange exchange) throws
MessagingException
    {
          ...

        try
        {
              .....
        } catch (Exception e)
        {
            throw new MessagingException(e);
        }
-- 
View this message in context: 
http://www.nabble.com/JMS-recoveryInterval-seem-not-work-tp16201974s12049p16201974.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to