• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

A JTA EntityManager cannot use getTransaction()

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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???
 
zabin shariff
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have tried using UserTransaction too but still getting the same error. I don't know where I am going wrong. Can anybody suggest?
 
zabin shariff
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Still struggling with this issue....can anybody help???
 
reply
    Bookmark Topic Watch Topic
  • New Topic