Announcement Announcement Module
Collapse

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions (http://www.springsource.org/extensions) project, this forum has been decommissioned in favour of Spring Extensions one at:
http://forum.springsource.org/forumdisplay.php?f=44

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Cheers,
Costin Leau
SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
http://twitter.com/costinl
See more
See less
springmodules obj and jcr integration Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • springmodules obj and jcr integration

    Has anyone managed to get an application which uses both the springmodules ojb and jcr modules running.

    My problem lies in that both require a TransactionManager and I just can't get my head
    around how to get Transaction Managers in general, and specifically how to wire things
    up such that one TransactionManager is used.

    I'm currently getting an error message as follows:

    org.springframework.beans.factory.UnsatisfiedDepen dencyException: Error creating bean with name 'org.jasig.conference.service.impl.PersonServiceTe st': Unsatisfied dependency expressed through bean property 'transactionManager': There are 2 beans of type [org.springframework.transaction.PlatformTransactio nManager] available for autowiring by type: [transactionManager, jcrTransactionManager]. There should have been exactly 1 to be able to autowire property 'transactionManager' of bean 'org.jasig.conference.service.impl.PersonServiceTe st'. Consider using autowiring by name instead.
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.autowireByType(Abstract AutowireCapableBeanFactory.java:936)

    ...

    What is odd is that I have put 'autowire="byName" just about everywhere (including as the default in the <beans> elements, but it looks like it's still trying to autowire by type.

    I can post my spring configuration files if necessary, but rather than post something which is not working if someone has something that *does* work I'd like to see it.
Working...
X