DANLZ
Jul 26th, 2006, 06:44 AM
Hello.
I have a problem with tansaction attributes.
Configuration is:
<bean id="aBean" parent="txProxyTemplate">
<property name="target">
<bean class="pl.siemens.ptdbos.service.data.billing.download.Bi llingDataImportUtil">
</bean>
</property>
<property name="transactionAttributes">
<props>
<prop key="inner">PROPAGATION_REQUIRES_NEW,-Exception</prop>
<prop key="outer">PROPAGATION_REQUIRED,-Exception</prop>
</props>
</property>
</bean>
Then in aBean class I do this:
public void outer() {
try {
this.inner();
} catch (Exception e) {
// put info to log
}
}
The problem is that transaction attributes for inner() method do not work.
No new transaction is created.
What am I missing?
Thanks in advance
I have a problem with tansaction attributes.
Configuration is:
<bean id="aBean" parent="txProxyTemplate">
<property name="target">
<bean class="pl.siemens.ptdbos.service.data.billing.download.Bi llingDataImportUtil">
</bean>
</property>
<property name="transactionAttributes">
<props>
<prop key="inner">PROPAGATION_REQUIRES_NEW,-Exception</prop>
<prop key="outer">PROPAGATION_REQUIRED,-Exception</prop>
</props>
</property>
</bean>
Then in aBean class I do this:
public void outer() {
try {
this.inner();
} catch (Exception e) {
// put info to log
}
}
The problem is that transaction attributes for inner() method do not work.
No new transaction is created.
What am I missing?
Thanks in advance