persistence@glassfish.java.net

Re: Persistent problem

From: Sanjeeb Kumar Sahoo <Sanjeeb.Sahoo_at_Sun.COM>
Date: Thu, 04 Jan 2007 10:46:07 +0530

Vasanthakumar wrote:
> Hi all
> I am using Toplink + GlassFish for persistent layer for my project
>
>
> I have a aproblem in persistency. When I persist one object it is not
> persisted but no exception comes but when
> do like
>
> EntityManager em =
> getJpaTemplate().getEntityManagerFactory().createEntityManager();
> em.getTransaction().begin();
>
> em.persist(user);
> em.getTransaction().commit();
>
>
> It works.
Here you said "it works" and earlier you mentioned "the object is not
persisted". Can you clarify what works and what does not work?
> Please tell me how can I configure rollback = false in the
> application-config for JpaTransactionManager/
What is application-config? What is JpaTransactionManager?

Sahoo
>
>