Results 1 to 2 of 2

Thread: Annotation-based Transaction supported with Java Config in Spring 3

  1. #1
    Join Date
    May 2007
    Location
    Hamburg, Germany
    Posts
    44

    Default Annotation-based Transaction supported with Java Config in Spring 3

    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?

    Thanks,
    Nils

  2. #2
    Join Date
    Apr 2007
    Posts
    307

    Default

    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/>
    Chris Beams
    Spring Framework committer, VMware
    http://github.com/cbeams

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •