This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Annotation-based Transaction supported with Java Config in Spring 3

Jun 17th, 2010, 03:03 AM

Hi,

I'd like to enable annotation-based transaction configuration using java config in Spring Core 3.0. Is it possible? Are there any chances that something like @AnnotationDrivenTx from Spring Java Config gets ported to Spring Core?

there may be a more first-class mechanism for enabling annotation-driven TX in @Configuration classes in Spring 3.1, but in the meantime, the recommended approach is to use @ImportResource to include a snippet of XML that declares <tx:annotation-driven/>