Today, Spring AOP is widely used in transaction manage, but I found something that I had never noticed yet.
The situation was : I have a service class named KeywordExtendService , there are 2 methods in it named: "start" and "service". the service method will invoke the start method. but I config the pointcut like : execution(* com.waynewan.KeywordExtendService .start(..)) . and the transaction propagation level is "REQUIRED", so this means if there is an transaction it will use the exist one, if not it will create one. but the result is not as I guessed. when the start method invoked in the service method(no transaction configuration), there is no transaction start. Continue reading
Dec
06