activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From avin98 <avi...@yahoo.com>
Subject MDB and Bean Managed transactions
Date Tue, 25 Jul 2006 19:22:24 GMT

I have a connection factory configured as:

<resource-ref>
    <description>jms broker</description>				              
<res-ref-name>jms/QueueConnectionFactory</res-ref-name>
    <res-type>javax.jms.QueueConnectionFactory</res-type>
    <res-auth>Container</res-auth>
</resource-ref>


I have a MDB listening on QUEUE1 , which has a Bean Managed transaction.

onMessage() {

     ut.begin();
     getConnectionFactory().createConnection();
     ut.commit();

}

It fails with the following exception.

}


Caused by: Not supported.
        at
org.activemq.ra.ActiveMQManagedConnection.associateConnection(ActiveM
QManagedConnection.java:264)
        at
org.apache.geronimo.connector.outbound.ConnectionHandleInterceptor.ge
tConnection(ConnectionHandleInterceptor.java:53)
        at
org.apache.geronimo.connector.outbound.TCCLInterceptor.getConnection(
TCCLInterceptor.java:39)
        at
org.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor.
enter(ConnectionTrackingInterceptor.java:93)
        at
org.apache.geronimo.connector.outbound.connectiontracking.ConnectionT
rackingCoordinator.notifyConnections(ConnectionTrackingCoordinator.java:69)
        at
org.apache.geronimo.connector.outbound.connectiontracking.ConnectionT
rackingCoordinator.newTransaction(ConnectionTrackingCoordinator.java:75)
        at
org.apache.geronimo.connector.outbound.connectiontracking.ConnectionT
rackingCoordinator$$FastClassByCGLIB$$5d33aabf.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod
Invoker.java:38)
        at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio
n.java:118)
        at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.
java:800)
        at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:5
7)
        at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperat
ionInvoker.java:36)
        at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Pro
xyMethodInterceptor.java:96)
        at
org.apache.geronimo.transaction.TrackedConnectionAssociator$$Enhancer
ByCGLIB$$ad87db0b.newTransaction(<generated>)
        at
org.apache.geronimo.transaction.context.OnlineUserTransaction.begin(O
nlineUserTransaction.java:66)
        ... 25 more
-- 
View this message in context: http://www.nabble.com/MDB-and-Bean-Managed-transactions-tf2000052.html#a5491582
Sent from the ActiveMQ - User forum at Nabble.com.


Mime
View raw message