Hmm, if you remove that you will get into trouble. At least I got, thats why I put it in there in the first place..

Problem was when I had entites that were managed between pages.. Eg if you go to pageA and your pet Class loads here, then go to pageB which does some changes to pet and then saves it. It caused some entity not managed exceptions..

Can you confirm that your code works after removing this ?

regards Nino

Bert Radke wrote:
On Sun, Mar 23, 2008 at 9:20 PM, Timo Rantalaiho <[EMAIL PROTECTED]> wrote:
 Could you show us some code, please? The crystal balls and
 tea leaves charge extra for easter work :)


Thank you for your reply and sorry that i put to much stress on the
crystal balls ;)

As i was writing a lengthily response with code - snippets, i found
the problem myself:

In my Daos, i request the EntityManager with the following lines:

private EntityManager entityManager;

        @PersistenceContext(type = PersistenceContextType.EXTENDED)
        public void setEntityManager(final EntityManager entityManager) {
                this.entityManager = entityManager;
        }

After removing the type = PersistenceContextType.EXTENDED part, it
seems to work now..

Looks like i just needed someone to 'talk' to ;) sorry for the noise
in the list..

Again, thanks for answering / reading

Bert

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to