Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Using ChainedTransactionManager for multiple databases

 
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..!
 
    Bookmark Topic Watch Topic
  • New Topic