Using Spring Declarative Transaction With Load Time Weaving It is virtually imperative to use declarative transaction management in aspectj mode if you want to invoke a transactional method of an object from another of its functions, which may be named as self invocation. In case of self invocation method invocations will not be intercepted by spring created Proxy objects thus a new transaction won’t be started. For more information you may refer to related spring document . To overcome this matter, aspectj mode is available. In aspectj mode binary code of the targed class is weaved to include desired code snippets. This can be accomplished in two different ways, load time weaving (LTW) or compile time weaving(CTW). In this article LTW will be at center of attention. Required Configuration Maven Configuration Only dependencies matter, so remaining configuration is omitted. <dependencies> <dep...
Software Engineering experiences and best practices