The question: "if a method isn't intercepted for running in a transaction, but the calling method is running in one, what is the behaviour of the non-intercepted method ?".
* Consider a service 'someService' with 2 methods "methodA()" and "methodB()".
* methodB() is called within the scope of methodA();
* methodA needs a transactional security, so i provide one thru this: ...Code:... methodA() { methodB(); } ...
* Notice that "methodB()" isn't mentioned in the "transactionAttributes".Code:<bean id="someService" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"> <property name="transactionManager"> <ref bean="myTransactionManager"/> </property> <property name="target"> <ref local="actualTicketServiceBean"/> </property> <property name="transactionAttributes"> <props> <prop key="methodA">PROPAGATION_REQUIRED</prop> </props> </property> </bean>
* The question(s): if a method isn't intercepted for running in a transaction, but the calling method is running in one, what is the behaviour of methodB:
1) is it running in a transaction ?
2) is it running the same transaction as methodA ?
3) of not (another) what is it's propagation-level (is there a default) ?
TIA
-wil-
P.S. can you point me to some resources (urls e.a.) regarding this matter. (so, something that goes beyond "NotSupported" is ..., RequiredNew is ..., but rather more in-depth. TIA again).


Reply With Quote
)