• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Getting NotSupportedException while Transaction.begin.

 
Ranch Hand
Posts: 157
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I am using JTA transaction as part of my project.
My requirement is to start a transaction update the product details and commit it after some processing i want to again start a new transaction to update the customer details..
My code looks like this...
In Prodcutmanager class..

and in

ProductDAO the updateProductInfo method looks like



this is working fine. But after execution of this method i want to update the customer info..
and its giving javax.transaction.NotSupportedException while transaction.begin() itself as shown below..



What is the worng with my code.. am i missing to close some session or something?

Thanks in advance..
Bala


 
Bala Tilak
Ranch Hand
Posts: 157
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have some bug in my code and not closing the first transaction properly... i fixed it..


Regards,
Bala.
 
reply
    Bookmark Topic Watch Topic
  • New Topic