users@glassfish.java.net

Re: Resource injection in JSP how to...

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Thu, 08 Jun 2006 15:38:44 -0700

Richter,

Yes, you can inject a EntityManagerFactory. But each EM created from such
factory should be single threaded in its use (the spec makes it a responsibility
of a user), and must be closed at the end of the use to release the resources.

See Sahoo's blog on this issue:
http://weblogs.java.net/blog/ss141213/archive/2005/12/dont_use_persis_1.html

Regards,
-marina

Edson Carlos Ericksson Richter wrote:
> ... ok, may be I just made a sidekick on the server... Still interesting
> way to get resource injection on JSP pages:
>
> http://jroller.com/page/brviking?entry=resource_injection_in_jsps_is
>
>
>
> Richter
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net