You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Gavin Bong <ga...@gmail.com> on 2007/08/23 08:49:15 UTC

Different EntityManagerFactories, One datastore

Hi,

Is it possible to have multiple EntityManagerFactories to point to the
same datastore ?

-- 
Regards,

Gavin Bong

-----
Ce qui compte dans une vie,
c'est l'intensité d'une vie,
ce n'est pas la durée d'une vie
~ Jacque Brel

Be liberal in what you accept,
and conservative in what you send
~ Jon Postel, RFC1122

Re: Different EntityManagerFactories, One datastore

Posted by pl...@gmail.com.
Yes. Do you want the different EMFs to point to the same tables? If
so, and if you use data caching, OpenJPA will properly handle
intra-JVM cache invalidation.

-Patrick

On 8/22/07, Gavin Bong <ga...@gmail.com> wrote:
> Hi,
>
> Is it possible to have multiple EntityManagerFactories to point to the
> same datastore ?
>
> --
> Regards,
>
> Gavin Bong
>
> -----
> Ce qui compte dans une vie,
> c'est l'intensité d'une vie,
> ce n'est pas la durée d'une vie
> ~ Jacque Brel
>
> Be liberal in what you accept,
> and conservative in what you send
> ~ Jon Postel, RFC1122
>


-- 
Patrick Linskey
202 669 5907