hi max
many thanks for ur quick reply, let me add some more details
We have a MDB which runs a Global transaction(XA), it calls an EJB(Stateless Session Bean), which uses Spring + Hibernate to insert a row in sybase table using jCOnnect jdbc, Sybase has XA switched on. After the insert MDB posts the message to MQ.
We use Websphere 5.1, Sybase 12.5, Spring 1.2.1, Hibernate 3.0.5.
If we don't use transactions all work fine but obviously if after the insert an error there is no rollback. So we introduced declarative transaction, pretty standard stuff, using Spring's org.springframework.orm.hibernate3.HibernateTransactionManager, and then using PROPAGATION_REQUIRED.
This produces the above error (SET CHAINED).
When u say "just use transactions and it should work" can u please explain a bit more on what changes we need to make to our tranx config.
Many thanks
Khurram.
|