Announcement Announcement Module
Collapse
No announcement yet.
Declarative Transactions weaves the classes at compile time or load time Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Declarative Transactions weaves the classes at compile time or load time

    We all know the transaction management in spring uses the AOP. My question related to transaction management is "when we define the declarative transaction either using annotations or XML, when weaving of the class bound to transaction will happens. Is it at compile time or load time?"

    If it is at load time then, whether is slows down the class loading?.


    -Bharat

  • #2
    neither... It is runtime... No weaving is going to happen, spring AOP is proxy based and not based on bytecode manipulation...

    Comment


    • #3
      Hi Marten,
      Thank you for your response. If it is proxy based then it has to use JDK dynamic proxies or Cglib proxies. When these proxy generation happen with the transaction demarcation.

      Is it not better option to weave the classes rather than generating the dynamic proxies.

      -Bharat

      Comment

      Working...
      X