Results 1 to 2 of 2

Thread: Can @Transactional be used in classes loaded into an application as compiled JAR?

  1. #1
    Join Date
    Aug 2012
    Posts
    2

    Question Can @Transactional be used in classes loaded into an application as compiled JAR?

    I'm loading a library for a project which performs a bootstrap process when a spring context event fires. Within this process a method is marked as @Transactional and some setup steps are executed. However, when this library is loaded into a web application, the bootstrap process does not execute within a transaction. (both configured for aspect compile time weaving) If I drop the bootstrap source directly into the web app and run, the transaction happens.

    What am I missing? Do I need to use explicit transactions in code being loaded as a library?

    Thanks!

  2. #2
    Join Date
    Aug 2012
    Posts
    2

    Default

    Please disregard ...user error. :-)

Tags for this Thread

Posting Permissions

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