• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Bear Bibeault
  • Liutauras Vilda
  • Devaka Cooray
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Transaction name null if WebsphereUowTransactionManager is configured

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
ranger
Posts: 17344
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you try just with

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

Mark
 
Priyadarshan Kelkar
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17344
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It's fun to be me, and still legal in 9 states! Wanna see my tiny ad?
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!