Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

update using JPA

 
Pradyut Bhattacharya
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I m using glassfish v2 and persistence in a web application.

Well i want to ask:-
How to update using em.createQuery in JTA

in detail:-
I m calling persistence codes using a normal java class file inside a web Application

I can select easily using this code: -


I want to update using JTA as the persistence.xml file has
transaction-type="JTA"

When i try using update using this code i get a nullPointerException without any traces in the log



Any help
Thanks
Pradyut>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic