This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


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: 17250
    
    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: 17250
    
    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
 
GeeCON Prague 2014
 
subject: Transaction name null if WebsphereUowTransactionManager is configured