Johan Brelet wrote:
> I misunderstand something (sorry but I'm an ActiveMQ / JCA newbie). When
> using inbound communications, I thought that transactions were managed
> transparently by the JCA Resource Adapter and that the only way to rollback
> a transaction was to throw an error... So how can I do to handle the current
> transaction in the onMessage() method ? In my Spring config file, the only
> class that is linked with JTA transactions is the Jencks JCA connector (via
> the transactionManager property) :

If you are using Spring's transaction support, something like:

TransactionInterceptor.currentTransactionStatus().setRollbackOnly();

-- 
Christopher G. Stach II

Reply via email to