Re: JPA Toplink without Spring

2008-10-03 Thread Adam Hardy
You're not going to have any IoC container? Or just the struts one? Or something else? I would definitely use the OpenEntityManagerInView Filter / Interceptor pattern. I rolled my own 'context manager' which has some static methods to access things like EntityManagers in a threadsafe way, and

Re: JPA Toplink without Spring

2008-10-03 Thread Felipe Lorenz
is > transmission. > > >> Date: Thu, 2 Oct 2008 21:45:49 +0200 >> From: [EMAIL PROTECTED] >> To: user@struts.apache.org >> Subject: Re: JPA Toplink without Spring >> >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Hi Felipe, &

RE: JPA Toplink without Spring

2008-10-02 Thread Martin Gainty
distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Thu, 2 Oct 2008 21:45:49 +0200 > From: [EMAIL PROTECTED] > To: user@struts.apache.org > Subject: Re: JPA Toplink without Spring > > ---

Re: JPA Toplink without Spring

2008-10-02 Thread Volker Karlmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Felipe, sorry, didn't read carefully. Did you have a lool at Oracle's Toplink Forum ? http://forums.oracle.com/forums/forum.jspa;jsessionid=8d92201c30d6c8545719450d4cc49ae1ecd52fbaab42.e34Qc3aLbh8RbO0LbxmRb3eObNeMe0?forumID=48&start=0 or Oracle's

Re: JPA Toplink without Spring

2008-10-02 Thread Felipe Lorenz
Thanks for replay. But thats the problem... im not using spring. So, do you have a clue? On Thu, Oct 2, 2008 at 9:31 AM, Volker Karlmeier <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/how-to-ejb30-jpa-s

Re: JPA Toplink without Spring

2008-10-02 Thread Volker Karlmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/how-to-ejb30-jpa-spring/doc/how-to-ejb30-jpa-spring.html http://www.zdnet.de/using_oracle_toplink_with_the_spring_framework_download-39002355-60263173-1.htm http://almaer.com/blog/toplink-spr

JPA Toplink without Spring

2008-10-02 Thread Felipe Lorenz
Hi. Im trying to find on google what is the best practice to use jpa(toplink). Where i should save the EntityManagerFactory? ApplicationScope? Session? And create an EntityManager for each action called? How? Existe an tutorial for? I just found tutorials using Spring and Hibernate. Thanks in adv