• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using ChainedTransactionManager for multiple databases

 
Shihu Salam
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

My Application uses multiple datasource, for managing the transaction we used org.springframework.data.transaction.ChainedTransactionManager for defining each dataSource bean. But while starting the server we are getting an exception
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.data.transaction.ChainedTransactionManager]: No default constructor found; nested exception is java.lang.NoSuchMethodException: org.springframework.data.transaction.ChainedTransactionManager.<init>()
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:70)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957)
... 28 more
Caused by: java.lang.NoSuchMethodException: org.springframework.data.transaction.ChainedTransactionManager.<init>()
at java.lang.Class.getConstructor0(Class.java:2715)
at java.lang.Class.getDeclaredConstructor(Class.java:1987)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:65)

Spring bean definition below:


Please Help.. Thanks In Advance..!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic