-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Planning to use ehcache-2.10.1 in my Java project. Need help
PostPosted: Wed Nov 25, 2015 4:39 pm 
Newbie

Joined: Tue Mar 31, 2015 3:47 pm
Posts: 3
I'm planning to use ehcache-2.10.1 in my Java project that already has hibernate-4.1.4 as a dependency. How do I get rid of possible conflict?

Here's the problem. Hibernate-4.1.4 has ehcache-core-2.4.3 that I just can't exclude easily (we don't use Maven...) and I'm not sure if just leaving it as is would cause a conflict with ehcache-2.10.1.

If worse comes to worst, I may opt to exclude ehcache-core-2.4.3 from hibernate and manually include ehcache-2.10.1 to my build path - however, I'm not sure if ehcache-2.10.1 will be compatible with hibernate 4.1.4.

As stated earlier, I've observed that hibernate-4.1.4 comes with ehcache-core-2.4.3... I'll be fine to stick with that version of ehcache, however, they don't have documentation for that version in the ehcache website.

Any other alternative solution?


Top
 Profile  
 
 Post subject: Re: Planning to use ehcache-2.10.1 in my Java project. Need help
PostPosted: Sat Dec 05, 2015 5:01 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
The newer EHCache versions should be backward compatible with the previous releases, and Hibernate and EHCache interact through an API that ensures backward compatibility too.


Top
 Profile  
 
 Post subject: Re: Planning to use ehcache-2.10.1 in my Java project. Need help
PostPosted: Sat Dec 05, 2015 5:35 am 
Beginner
Beginner

Joined: Thu Nov 26, 2015 11:40 am
Posts: 33
Hi,

After going through the following links, it looks like we might run into some version compatibility issues with EhCache.

See if these links help in taking a decision regarding Hibernate and Ehcache version compatibility.

https://jsoftbiz.wordpress.com/2013/03/14/hibernate-4-and-ehcache-higher-than-2-4-3/

Refer to "Building with Maven" section in http://www.ehcache.org/generated/2.9.0/pdf/Integrations.pdf which says
Quote:
Note: Some versions of Hibernate-Ehcache may have a dependency on a specific version
of Ehcache. Check the Hibernate-Ehcache POM for more information.


Having said that, I am currently using Hibernate 5.0.4 with ehcache 2.10.1 in my sample projects and have not faced any issues so far. The ehcache version bundled with hibernate 5.0.4 is ehcache-core2.4.3.

-Madhu.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.