Hi
for configuring the jndi resource, I use tomcat, would it be something like
this
<Resource name="enty/EntityManagerFactory" auth="Container"
type="org.apache.openjpa.persistence.OpenJPAEntityManager"
factory="org.apache.openjpa.persistence.OpenJPAEntityManagerFactory"
/>
Then I can get it in my ws
cheers håkon
2008/11/11 Pinaki Poddar <[EMAIL PROTECTED]>
>
> > One solution is to create a new EntitymanagerFactory in each method
> Construction of EntityManagerFactory is a costly affair. Hence repeated
> construction should be avoided at all costs. An EMF is a good candidate for
> access via JNDI (akin to DataSource), if one is available.
> Some form of singleton pattern is recommended.
>
> --
> View this message in context:
> http://n2.nabble.com/Where-to-initialize-the-entitymanger-factory-tp1485683p1486001.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>
>
--
Håkon Sagehaug, Software Developer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)