Re: OpenJPA with Spring 6

2024-01-09 Thread Romain Manni-Bucau
Hi, you can use jakarta bundle of openjpa with spring 6 AFAIK ( https://repo.maven.apache.org/maven2/org/apache/openjpa/openjpa/3.2.2/openjpa-3.2.2-jakarta.jar ). Does not have a jpa 3 full support but should be sufficient. Romain Manni-Bucau @rmannibucau | Blog

OpenJPA with Spring 6

2024-01-09 Thread Shiva Kumar Rayapuram
Hello OpenJPA dev, We are using OpneJPA in our ms for database interactions. We were running into issues and understood that OpenJPA has not yet released its support for JPA3 (from spring 6). We would like to when is this planned to release ? Please suggest Thanks, Shiva This email and the

Re: Multi-tenancy and caching issues

2024-01-09 Thread Romain Manni-Bucau
Don't have everything ready for spring-data but had something like that in mind: public class RoutedEMFConf { @Bean @Primary LocalContainerEntityManagerFactoryBean mainEntityManagerFactory(final Tenant tenant, final ApplicationContext context) { final var emfs = findDelegates(

Re: Multi-tenancy and caching issues

2024-01-09 Thread Francesco Chicchiriccò
Thank Romain, I share your considerations and concerns below, and also agree that EMF routing is the way to go. I probably need to tune my current exploration to let evolve what we currently have in Syncope towards proper EMF routing. Do you have any sample I could follow about that? Regards.

Re: Multi-tenancy and caching issues

2024-01-09 Thread Romain Manni-Bucau
Hi Francesco, While you have an EMF router you don't have pitfall 4, it only happens if your routing is done at datasource level but it also means you have way more side effects and you start to loose the hability to tune per tenant (a common pattern is to tune the cache per tenant "size"/usage, t

Re: Multi-tenancy and caching issues

2024-01-09 Thread Francesco Chicchiriccò
Hi Romain, see my replies embedded below. Regards. On 08/01/24 17:43, Romain Manni-Bucau wrote: Hi Francesco, Normally if you have one EMF per tenant there is no leak between them since the cache instance is stored in the EMF - used that approach in TomEE. As I am saying below, this is what