Hi,
I tried to store beans in a database using Generator, Tansformer and
Serializer.
That's ok for Generator and Serializer but there's nothing in database
when I use a Transformer!
That's what I did:
<bean id="serviceProgramsGenerator"
name="org.apache.cocoon.generation.Generation/serviceProgramsGenerator"
The above line should be
o.a.c.generation.Generator not Generation, IIUC.
...
<property name="transactionAttributes">
<props>
<prop key="generate*">
PROPAGATION_REQUIRED
</prop>
for Transformer:
<bean
name="org.apache.cocoon.transformation.Transformer/importTestTransformer"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
...
<property name="transactionAttributes">
<props>
<prop key="transform*">
PROPAGATION_REQUIRED
</prop>
and for Serializer:
<bean
name="org.apache.cocoon.serialization.Serializer/importTestSerializer"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
...
<property name="transactionAttributes">
<props>
<prop key="setOutputStream*">
PROPAGATION_REQUIRED
</prop>
I wrote the same code in them:
MaColor color = new MaColor("purple");
colorDAO.persist(color);
So why doesn't it work with a transformer? Is the spring transaction
initialized in the transformer?
Regards,
Tugdual Huertas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]