Forums Register Login

update using JPA

+Pie Number of slices to send: Send
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>
passwords must contain 14 characters, a number, punctuation, a small bird, a bit of cheese and a tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1281 times.
Similar Threads
MZs Notes - Pg 159
How to create a Template for EntityManager in a WebApplication
deploying multiple ejb module
Persistence IllegalArgumentException in EntityManager
JBOSS CACHE second level caching for named query cache
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 05:41:33.