activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From millea1 <amil...@simplestar.com>
Subject Re: [activemq-user] Re: Redelivery - Jencks
Date Tue, 27 Jun 2006 15:27:10 GMT

Howdy,

Did have an ActiveMQManagedConnectionFactory referencing the
ActiveMQResourceAdapter; also had a 
LocalConnectionFactoryBean referencing it. 

Took out the ref to the connectionFactory in the ActiveMQResourceAdapter as
suggested but got the same result...is there a legal way to do a rollback
from an MDP? 

Thanks for taking the time...
Details:

    <bean id="jencks" class="org.jencks.JCAContainer" singleton="true">

        <property name="bootstrapContext">
            <bean class="org.jencks.factory.BootstrapContextFactoryBean">
                <property name="threadPoolSize" value="25"/>
            </bean>
        </property>
        <property name="resourceAdapter"><ref
local="jmsResourceAdapter"/></property> 
    </bean>

<bean id="jmsConnectionManager"
class="org.jencks.factory.ConnectionManagerFactoryBean">
        <property name="transactionSupport"><ref
local="jmsTransactionSupport"/></property>
        <property name="poolingSupport"><ref
local="jmsPoolingSupport"/></property>
</bean>

<bean id="jmsResourceAdapter"
class="org.apache.activemq.ra.ActiveMQResourceAdapter">
        <property name="serverUrl" value="tcp://localhost:61616"/>
        <property
name="initialRedeliveryDelay"><value>30000</value></property>
        <property name="maximumRedeliveries"><value>3</value></property>
        <property
name="redeliveryBackOffMultiplier"><value>2</value></property>
        <property
name="redeliveryUseExponentialBackOff"><value>true</value></property>
        <property name="allPrefetchValues"><value>1</value></property>
</bean>

<bean id="jmsManagedConnectionFactory"
class="org.apache.activemq.ra.ActiveMQManagedConnectionFactory">
        <property name="resourceAdapter"><ref
local="jmsResourceAdapter"/></property>
</bean>

<bean id="jmsOutConnectionFactory"
class="org.springframework.jca.support.LocalConnectionFactoryBean">
        <property name="managedConnectionFactory"><ref
local="jmsManagedConnectionFactory"/></property>
        <property name="connectionManager"><ref
local="jmsConnectionManager"/></property>
</bean>

java.lang.RuntimeException: 1st rejection...<timestamp>Tue Jun 27 08:19:40
PDT 2006</timestamp>
        at
emailr.EmailReceiptQServiceImpl.onMessage(EmailReceiptQServiceImpl.java:128)
        at org.jencks.XAEndpoint.onMessage(XAEndpoint.java:126)
        at
org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.onMessage(MessageEndpoin
tProxy.java:120)
        at
org.apache.activemq.ra.MessageEndpointProxy.onMessage(MessageEndpointProxy.java:60)
        at org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:692)
        at
org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:163)
        at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:291)
        at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
-- 
View this message in context: http://www.nabble.com/-activemq-user---Redelivery---Jencks-tf351500.html#a5068211
Sent from the ActiveMQ - User forum at Nabble.com.


Mime
View raw message