Dec 9th, 2011, 07:10 PM
I am wondering if I can use Spring Data JPA in the following environment:
JBoss SOA 5.0.2 (Java EE 5, JPA 1.0, Hibernate 3.3.2)
Thankfully, due to the JBoss Snowdrop project I have gotten Spring 3.0.6 to work in this environment...but in looking through the Maven dependencies it would appear to me that I may need a container with JPA 2.0 support in order to use Spring Data JPA. What is the truth?
Dec 12th, 2011, 05:39 AM
42… You don't need a container but to ship a JPA 2.0 capable persistence provider along with your application. All the recent ones (Hibernate, EclipseLink, OpenJPA) implement the 2.0 version.
Dec 12th, 2011, 07:32 AM
Ah...so there's my problem. Based on your response I did a little research and found that Hibernate 3.5 was the first Hibernate version to support JPA 2.0, but I'm stuck with Hibernate 3.3.2. Hibernate seems so intertwined with this version of JBoss (5.0.x), that it may be quite difficult to "un-plumb" that. The obvious advice would be to upgrade JBoss (or switch to even just Tomcat), but that's unfortunately a very tough political battle.
Dec 12th, 2011, 07:54 AM
You might want to try to override the bootloader and tell the app server that the jars packaged with your app should be used and not the ones the app server provides. For an example of that read up on this link.
Hope this helps.
Dec 12th, 2011, 09:43 AM
I have definitely been fighting the JBoss 5.0.x classloader and having mixed success. I've finally got Spring 3.0.6 to work with the "help" of the JBoss Snowbird project.
One thing to note...your link just opens up to a splash page graphic with no text. Thanks for the link, though, and I'll try Googling the text to see if I find the article elsewhere.
Originally Posted by a.rubalcaba
Dec 13th, 2011, 07:28 PM
Hmmmm ... I'm going to have to think about that one