activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nilantha <Nilantha.Jayal...@autodata.net>
Subject redelivery failure using MDP with Jencks in ActiveMQ 4.1.0
Date Fri, 09 Feb 2007 17:00:35 GMT

Hi,
I have a basic configuration for a Message Driven POJO in Spring(2.0) with
Jencks(2.0). This setup works fine if there are no exceptions thrown from
MDP. MDP stop receiving any message as soon as an exception is thrown. If I
restart the listner app it starts receiving again. Am I missing anything
here...?

As of my understanding messages should be redelivered 4 times according to
the following configuration and MDP should continuously receive messages.

	<!-- JENCKS-->
	<bean id="jencks" class="org.jencks.JCAContainer">
		<property name="transactionManager" ref="transactionManager" />
		<property name="threadPoolSize" value="25" />
		<property name="resourceAdapter">
			<bean id="activeMQResourceAdapter"
class="org.apache.activemq.ra.ActiveMQResourceAdapter">
				<property name="serverUrl"
				
value="failover:(tcp://xxx,tcp://xxx:61417)?jms.redeliveryPolicy.allPrefetchValues=1&amp;jms.redeliveryPolicy.initialRedeliveryDelay=2000&amp;jms.redeliveryPolicy.maximumRedeliveries=4&amp;jms.redeliveryPolicy.useCollisionAvoidance=true"
/>
			</bean>
		</property>
	</bean>

	<bean id="transactionManager"
class="org.jencks.factory.TransactionManagerFactoryBean" />

	<bean id="requestQueue" class="org.apache.activemq.command.ActiveMQQueue">
		<constructor-arg value="requestQueue" />
	</bean>

	<bean id="inboundConnectorB" class="org.jencks.JCAConnector">

		<property name="jcaContainer" ref="jencks" />

		<!-- subscription details -->
		<property name="activationSpec">
			<bean class="org.apache.activemq.ra.ActiveMQActivationSpec">
				<property name="destination" value="requestQueue" />
				<property name="destinationType" value="javax.jms.Queue" />
			</bean>
		</property>

		<property name="ref" value="echoBean" />
	</bean>

	<!--
		|| Message Driven POJOs
	-->
	<bean id="echoBean" class="blog.mdp.RegistrationServiceImpl">
		<property name="msgConverter">
			<bean
class="org.springframework.jms.support.converter.SimpleMessageConverter" />
		</property>
	</bean>

-- 
View this message in context: http://www.nabble.com/redelivery-failure-using-MDP-with-Jencks-in-ActiveMQ-4.1.0-tf3201359s2354.html#a8888916
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message