Announcement Announcement Module
No announcement yet.
MDB - Spring JDBC - XA Transaction Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • MDB - Spring JDBC - XA Transaction

    We have an MDB annontated with:

    @TransactionManagement(TransactionManagementType.C ONTAINER)

    This MDB is then Spring injected with a service that interacts with XA data source via the JDBC Template. I'm using a Spring config class and I have the following:


    public PlatformTransactionManager annotationDrivenTransactionManager() {
    return new WebLogicJtaTransactionManager();

    My Spring Bean is annotated with @Transactional but when I run it, I get:

    org.springframework.transaction.CannotCreateTransa ctionException: No JTA UserTransaction available - programmatic PlatformTransactionManager.getTransaction usage not supported

    Why is that and what can I do to resolve this?

  • #2
    Sorry for not getting to this sooner. We are in the process of moving to StackOverflow for our forums.

    This question is probably a better candidate for StackOverflow, perhaps against the #spring-jms, spring-tx tag.
    If you do post it there, please reply here with the link.