JBoss Community

Re: AS 7 Persistence Provider Problem

created by Scott Marlow in JBoss AS7 Development - View the full discussion
1) Simple module defintion in the as7/modules/org/eclipse/persistence folder - there might be more dependencies but so far it seems the eclipselink jar is pretty much standalone.


<module xmlns="urn:jboss:module:1.0" name="org.eclipse.persistence">


    <resource-root path="eclipselink.jar"/>

        <!-- Insert resources here -->



    <module name="javax.api"/>

    <module name="javax.transaction.api"/>




Looks good.




2) I have taken some notes locally related to how the module was created.  I'm not sure the best way to integrate into documentation.  I guess when things actually work, it should be pretty easy.



Lets talk about the documentation later, that will be as easy as updating a wiki page or posting in this forum.  https://docs.jboss.org/author/display/AS71/JPA+Reference+Guide is easy to update.




3) I've hacked the following classes based upon the Hibernate jpa package.  Basically, everywhere I see "Hibernate", replace with "Eclipselink" -- working through the details for swapping out differences in implementation details for Eclipselink

<package - structure>



               - Employee

               - SessionFactoryTestCase

               - SFSB1




Sounds like a good start.




Does the following properties entry go into the "standalone.xml"? - The Hibernate entry in standalone seems pretty involved - will the entry in the standalone.xml be simular for eclipselink?



            <property name="jboss.as.jpa.providerModule" value="org.eclipse.persistence" />



No, it would be nice to have default properties in "standalone.xml" at some point for things like that. 


I would put all of the desired properties in the persistence.xml (e.g. see org.jboss.as.testsuite.integration.jpa.transaction.TransactionTestCase and examine the String variable named persistence_xml).


Great start!  :)

Reply to this message by going to Community

Start a new discussion in JBoss AS7 Development at Community