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 I configure the servlet container to launch it at start-up.

You didn't mention EJBs, but they'd offer a way to handle transactions, otherwise you'll be hard-coding them, unless you're going to do without it.

Regards
Adam

Felipe Lorenz on 03/10/08 17:12, wrote:
Thanks folk... ill see it!!

On Thu, Oct 2, 2008 at 1:36 PM, Martin Gainty <[EMAIL PROTECTED]> wrote:
attempting to follow your sans Spring implementation curious as to which Bean will you be using to take the place of JndiObjectFactoryBean?

another alternative would be to implement a stateless session bean such as what is described at http://www.oracle.com/technology/pub/articles/dikmans-spring-toplink.html

does this help? Martin _______

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 toplink page: http://www.oracle.com/technology/products/ias/toplink/index.html

There are also some Toplink-Howtos to find: http://www.oracle.com/technology/products/ias/toplink/technical/tips/index.html



Maybe that helps you.
Felipe Lorenz schrieb:
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.


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

Reply via email to