activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher G. Stach II" <>
Subject ActiveMQ 3.2.1 not redelivering after exception
Date Mon, 02 Jan 2006 15:54:50 GMT
I'm using Spring 1.2.6 JtaTransactionManager w/annotations with the
GeronimoTransactionManagerFactoryBean and Jencks 1.1.1 to run some
message-driven POJOs.  When getting an exception in the POJO, I see that
the rollback happens properly, although the message is not redelivered
from the Queue.  I'm pretty sure I've narrowed down where this happens.

At ActiveMQSession:570, afterMessageDelivered is called with
beforeCalled being true.  Inside of afterMessageDelivered, the message
that was delivered, processed, and got an exception is removed from the
deliveredMessages collection.  Later on in the process, the redelivery
mechanism uses that collection, but it is of course empty.

So, what we have happening is a successful queue, a delivery, an
exception, a rollback, but no redelivery.  I really don't think that
this is somehow related to configuration, because in certain other cases
I actually do get a redelivery.  It's not always the same number of
times, and rarely the configured number of times in activemq.xml.

<?xml version="1.0" encoding="UTF-8"?>

<beans default-lazy-init="false" default-dependency-check="none"

	<broker name="brokeroffice">
			<tcpServerTransport uri="tcp://localhost:0"
			                    maxOutstandingMessages="50" />

			<zeroconfDiscovery type="" />

		<discoveryNetworkConnector />

			<journalPersistence directory="activemq/journal">
				<jdbcPersistence dataSourceRef="derby-ds" />

		<redeliveryPolicy maximumRetryCount="10" backOffMode="true"
initialRedeliveryTimeout="2000" />

	<bean id="derby-ds" class="org.apache.commons.dbcp.BasicDataSource"
		<property name="driverClassName">

		<property name="password">

		<property name="poolPreparedStatements">

		<property name="url">

		<property name="username">


View raw message