Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Sharing of L1 Cache in case of transaction-type="JTA" for persistence unit in persistence.xml

  An EntityManager represents a unit of work, and so must be isolated until the work is complete and it commits.  What you read might have referred to the L2 cache which is shared, but Caching works the same using JTA as it Resoure_local though.

Best regards,
Chris

On 2012-10-29, at 7:24 AM, manishwarekar <manishwarekar@xxxxxxxxx> wrote:

> Hi,
> 
> Need some information about How does transaction-type="JTA" in
> persistence.xml works in case of multiple instances of EntityManager?? I
> read somewhere that it uses same L1 cache and L1 cache is getting shared
> between all instances. What do I need to do if I need functionality where
> each entitymanager should use different part of L1 cache or each instance
> should create its own memory cache like it does in
> transaction-type="RESOURCE_LOCAL"??
> 
> 
> 
> --
> View this message in context: http://eclipse.1072660.n5.nabble.com/Sharing-of-L1-Cache-in-case-of-transaction-type-JTA-for-persistence-unit-in-persistence-xml-tp155351.html
> Sent from the EclipseLink - Users mailing list archive at Nabble.com.
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users


Back to the top