I have a
JSF project in which I have JPA as ORM. I am getting the following error while executing the code:
error:
If I remove the line em.getTransaction().begin(), then also I am getting error which says "no transaction found"
my db2-ds.xml looks like:
And my persistence.xml looks like:
If I use DB2DS instead of JTA_DB2DS in persistence.xml then also there is no change in the behaviour.
Am I missing something???