• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting NotSupportedException while Transaction.begin.

 
Bala Gangadhar
Ranch Hand
Posts: 110
1
  • Mark post as helpful
  • send pies
  • 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 Gangadhar
Ranch Hand
Posts: 110
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have some bug in my code and not closing the first transaction properly... i fixed it..


Regards,
Bala.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic