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..
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..
posted 7 years ago
sorry for the post ! I have some bug in my code and not closing the first transaction properly... i fixed it..