Announcement Announcement Module
Collapse

JavaConfig forum decommissioned in favor of Core Container

As described at

http://static.springsource.org/sprin...fig/README.TXT

key features of the Spring JavaConfig project have been migrated into the core Spring Framework as of version 3.0.

Please see the Spring 3.0 documentation on @Configuration and @Bean support:

http://static.springsource.org/sprin...tml#beans-java

For any questions related to @Configuration classes and @Bean methods in Spring 3.0, please post in the dedicated 'Core Container' forum at

http://forum.springsource.org/forumdisplay.php?f=26
See more
See less
Injecting into @PersistenceContext fields Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Injecting into @PersistenceContext fields

    I had a hare-brained idea that I could use java config to inject EntityMangers that are autowired using the @PersistenceContext annotation. The EntityManagers are used in code that is demarcated with a @Transactional annotation. The goal being to swap-out EMs when testing so transactions may be rolled back. I've had a go to no avail. Anyone tried this or have any knowledge that might help???

    Thanks
Working...
X