You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by avin98 <av...@yahoo.com> on 2006/07/25 21:22:24 UTC
MDB and Bean Managed transactions
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.