• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hibernate 4 Compatible JBoss

 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I need to use Hibernate 4.2 for Audit Logging Purpose using Hibernate envers.Could You please suggest the Version of Jboss that is compatible with hibernate4.
 
Ranch Hand
Posts: 270
15
Android Angular Framework Spring AngularJS Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, a couple of things. One is, do you have to have 4.2, or can it be at least 4.2? My reading over at

http://wildfly.org/news/2014/11/20/WildFly82-Final-Released/

indicates that WildFly 8.2 is setup to use Hibernate 4.3.7. If that is acceptable, I think it will make life easiest to use that. I think it is possible to bypass the "installed version" of Hibernate, by deploying your own versions of whatever jar you actually need, into your own app. But it might take more work, and it might require tweaking things (researching, and trying things, etc.). Sorry, but I have not tried anything like that for years.

However, this other thread https://coderanch.com/t/90896/JBoss/Loading-version-Hibernate-Jboss shows what someone had to do in an old version to get a later hibernate version to work. Nowadays, Jboss 7+ (and Wildfly) have better partitioning of the classpath, as mentioned in https://docs.jboss.org/author/display/WFLY8/Class+Loading+in+WildFly . So it might not require as much tweaking.

Bottom line, if you really require 4.2 and nothing newer, you can probably make that happen with the latest version of WildFly, and not have to try and change everything in the server to do it.

As an aside, the Oracle Java EE folks also offer "JPA" which can use Hibernate as its backing (or any other implementation). But, it sounds like you have very specific requirements, here, including Envers.
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
WildFly 9.0.2 ships with Hibernate envers 4.3.10.Final, as well as Hibernate core 4.3.10.Final. You can use those as a provided dependency in your Maven poms (assuming you use Maven, otherwise just build with the JAR files on the class path but don't package them with the application).
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic