Re: [hibernate-dev] [ORM] EhCache 3 and JCache

2016-07-20 Thread Noel Diaz
Thank you very much for the quick reply! Noel On Wednesday, July 20, 2016 2:18 PM, Louis Jacomet wrote: Hi Noel, Yes this is available in Hibernate 5.2. Have a look at  http://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html#caching-provider-jcache You ca

Re: [hibernate-dev] [ORM] EhCache 3 and JCache

2016-07-20 Thread Louis Jacomet
Hi Noel, Yes this is available in Hibernate 5.2. Have a look at http://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html#caching-provider-jcache You can of course use Ehcache 3.x as the JCache implementation - for which documentation is available at http://www.ehca

Re: [hibernate-dev] [ORM] EhCache 3 and JCache

2016-07-20 Thread Noel Diaz
Hi Guys, Is it possible to use EhCache 3.x with Hibernate 5.2 ?  Many Thanks,  Noel On Wednesday, May 25, 2016 6:51 AM, Louis Jacomet wrote: Hi, I have opened the PR: https://github.com/hibernate/hibernate-orm/pull/1386 I'll be looking at the test referenced by Radim over the next da

Re: [hibernate-dev] [ORM] EhCache 3 and JCache

2016-05-25 Thread Louis Jacomet
Hi, I have opened the PR: https://github.com/hibernate/hibernate-orm/pull/1386 I'll be looking at the test referenced by Radim over the next days to see what can be done. Regards, Louis On Wed, May 25, 2016 at 9:52 AM Radim Vansa wrote: > It would be very nice if different implemenations coul

Re: [hibernate-dev] [ORM] EhCache 3 and JCache

2016-05-25 Thread Radim Vansa
It would be very nice if different implemenations could share parts of the testsuite, no doubts about that. TCK (or functional tests) is useful to find out cases when the implementation does not adhere to specification (which is 'always return the same thing DB would' in the modes but nonstrict

Re: [hibernate-dev] [ORM] EhCache 3 and JCache

2016-05-24 Thread Steve Ebersole
Master is 5.2. There was a previous discussion on this list detailing the 5.2 changes. Where possible we did not change APIs (though there were a few cases where that was needed to avoid clashes with JPA method names). We did change lots of SPIs though. If you are willing to commit to getting th

Re: [hibernate-dev] [ORM] EhCache 3 and JCache

2016-05-24 Thread Louis Jacomet
Hey Steve, That's a tough question. For tomorrow I don't see how ... Technically the code is out there. But it lacks documentation which is needed: how to select a specific provider and specify a URI which can be used as config source. That still needs to be added. In one week, more likely. I am

Re: [hibernate-dev] [ORM] EhCache 3 and JCache

2016-05-24 Thread Steve Ebersole
https://hibernate.atlassian.net/browse/HHH-10770 On Tue, May 24, 2016 at 3:51 PM Steve Ebersole wrote: > Hi Louis, > > In my opinion, > >- Yes, of course :) >- The plan is to release 5.2 tomorrow. So either this would have to >be done tomorrow or the release date pushed back in orde

Re: [hibernate-dev] [ORM] EhCache 3 and JCache

2016-05-24 Thread Steve Ebersole
Hi Louis, In my opinion, - Yes, of course :) - The plan is to release 5.2 tomorrow. So either this would have to be done tomorrow or the release date pushed back in order for this to be part of 5.2. We could push 5.2 another week, but would the work for this be done in a week?

Re: [hibernate-dev] [ORM] EhCache 3 and JCache

2016-05-24 Thread Louis Jacomet
Hello, I have a couple questions: * Should there be an issue created to track this work? * On which branch should this work based if we target a release with 5.2? In parallel, I have been reading the pointers Vlad gave and I intend to verify the current code actually works in all these cases :-)

Re: [hibernate-dev] [ORM] EhCache 3 and JCache

2016-05-20 Thread Steve Ebersole
What we had decided before during a discussion with myself, Alex Snaps, Radim and Sanne was to develop a JCache-based L2 case module and that Ehcache 3 would be supported through that mechanism. We'd continue support for the current Ehcahce 2 based hibernate-ehcache module for a short period of ti

Re: [hibernate-dev] [ORM] EhCache 3 and JCache

2016-05-20 Thread Guillaume Smet
Hi, On Fri, May 20, 2016 at 9:54 AM, Emmanuel Bernard wrote: > 3. change the Ehcache module and move it from v2 to v3 > Please don't do that. I'm pretty sure users will need to test Ehcache 3 before going live and it shouldn't be tied to an Hibernate upgrade. Cache is a very sensible subject a

Re: [hibernate-dev] [ORM] EhCache 3 and JCache

2016-05-20 Thread Radim Vansa
Will there ever be a possibility to use Ehcache in clustered environment, with opensource-only? Radim On 05/20/2016 10:56 AM, Louis Jacomet wrote: > Hi all, > > Thanks Emmanuel for the email and no worry on the delay, the fact that I > did not act sooner means it was pretty busy on our side too.

Re: [hibernate-dev] [ORM] EhCache 3 and JCache

2016-05-20 Thread Louis Jacomet
Hi all, Thanks Emmanuel for the email and no worry on the delay, the fact that I did not act sooner means it was pretty busy on our side too. But the timing is right, so let's move forward! Chris Dennis (added in CC) was the last one looking into the code and bringing it up to date with Hibernate

Re: [hibernate-dev] [ORM] EhCache 3 and JCache

2016-05-20 Thread Vlad Mihalcea
Hi Louis, The Caching section from the 5.0 docs is a good place to start to getting to know the basics of Hibernate 2nd level cache. If you want to get into lots of details, you can check my Hibernate Master Class: https://vladmihalcea.com/tutorials/hibernate/ There you can find a lot of resour