Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Cannot configure declarative transaction with hibernate and spring  RSS feed

 
Debasish Ray Chawdhuri
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following exception is coming while I try




The following is my spring-beans.xml [ springs configuration]



Please help!
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named '(inner bean)' is defined"

You are referencing a bean names "(inner bean)" And there is no such bean with that name. I didn't see it in your xml, but what about in your properties file? classpath:com/spring/demo/app.properties

Mark

 
Lalit Bhatt
Ranch Hand
Posts: 69
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also look into the annotation way of handling the transactions. It's better than writing aspects to handle transactions in XML
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!