File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Transaction name null if WebsphereUowTransactionManager is configured Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Transaction name null if WebsphereUowTransactionManager is configured " Watch "Transaction name null if WebsphereUowTransactionManager is configured " New topic
Author

Transaction name null if WebsphereUowTransactionManager is configured

Priyadarshan Kelkar
Ranch Hand

Joined: Apr 04, 2007
Posts: 31
Hello,

I am using Spring Transactions in my project. My Spring version is 3.0.3 and IBM Websphere v6.1.0.35.

If I use JtaTransactionManager then transaction name gets printed properly in logs.

Configuration:



Output of logs for log4j.logger.org.springframework.transaction.jta=DEBUG



But if I use WebsphereUowTransactionManager, then transaction name appears 'null' in the logs.

Configuration:


Logs Output:



If someone has faced this before and managed to resolve it please share your inputs.
Thanks in advance.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Did you try just with

<tx:jta-transaction-manager id="txManager"/>

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Priyadarshan Kelkar
Ranch Hand

Joined: Apr 04, 2007
Posts: 31
Hi Mark,

Thanks for replying.
I tried with <tx:jta-transaction-manager id="txManager"/>

But it is giving the same result as before. The transaction name is still being printed "null".
Really strange what is causing it to print null.

Please can you suggest ?
Thanks in advance.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

I am not sure, but JtaTransactionManager is the parent class of WebsphereUowTransactionManager in Spring. Maybe because you are using something more specific to Websphere, it can't get that value anymore.

Wish I could tell you more.

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Transaction name null if WebsphereUowTransactionManager is configured
 
Similar Threads
TransactionRequiredException - Help required !!!
Why it is making soo many tansactions?
Spring JDBC Transaction vs Connection ?
entity was not persistent in delete processing
totally stumped by synchronization.afterCommit error