activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rahul Dev <rahuldevbl...@yahoo.com>
Subject jms and jdbc operations in one transaction
Date Sun, 11 Mar 2007 16:25:18 GMT
Hi,

I have been trying to get the latest version of Jencks / Active MQ / Transactions and Hibernate
to work together using Spring.

I have referred to this article written by james sometime last year : http://activemq.apache.org/jms-and-jdbc-operations-in-one-transaction.html


The article seems to use an old version of Jencks and ActiveMQ and certian dependent libraries
were not found. I managed to download these "older" libraries and ensured that all dependent
libraires were there but then the application refuses to start and I get the following exception:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsConnectionFactory'
defined in class path resource [jencks-activemq.xml]: Cannot resolve reference to bean 'connectionManager'
while setting bean property 'connectionManager'; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'connectionManager': FactoryBean threw exception on object creation;
nested exception is java.lang.NoSuchMethodError: org.apache.geronimo.connector.outbound.GenericConnectionManager.<init>(Lorg/apache/geronimo/connector/outbound/connectionmanagerconfig/TransactionSupport;Lorg/apache/geronimo/connector/outbound/connectionmanagerconfig/PoolingSupport;ZLorg/apache/geronimo/connector/outbound/connectiontracking/ConnectionTracker;Lorg/apache/geronimo/transaction/context/TransactionContextManager;Ljava/lang/String;Ljava/lang/ClassLoader;)V
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with
name 'connectionManager': FactoryBean threw exception on object creation; nested exception
is java.lang.NoSuchMethodError: org.apache.geronimo.connector.outbound.GenericConnectionManager.<init>(Lorg/apache/geronimo/connector/outbound/connectionmanagerconfig/TransactionSupport;Lorg/apache/geronimo/connector/outbound/connectionmanagerconfig/PoolingSupport;ZLorg/apache/geronimo/connector/outbound/connectiontracking/ConnectionTracker;Lorg/apache/geronimo/transaction/context/TransactionContextManager;Ljava/lang/String;Ljava/lang/ClassLoader;)V
Caused by: java.lang.NoSuchMethodError: org.apache.geronimo.connector.outbound.GenericConnectionManager.<init>(Lorg/apache/geronimo/connector/outbound/connectionmanagerconfig/TransactionSupport;Lorg/apache/geronimo/connector/outbound/connectionmanagerconfig/PoolingSupport;ZLorg/apache/geronimo/connector/outbound/connectiontracking/ConnectionTracker;Lorg/apache/geronimo/transaction/context/TransactionContextManager;Ljava/lang/String;Ljava/lang/ClassLoader;)V
    at org.jencks.factory.ConnectionManagerFactoryBean.getObject(ConnectionManagerFactoryBean.java:64)


I would prefer to get the system working with the latest set of Active MQ (apache-activemq-4.1.0-incubator)
/ Jencks 2.0 / Hibernate 3.0 working.

Can someone kindly guide me on how to solve this problem and possibly update the document
on the web with the right versions of dependent libraries? 

An updated version on the web will help all other users who wish to use the latest versions
as well.

Thanks in advance,
Rahul

 
---------------------------------
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message