[jboss-dev-forums] [JBoss AS7 Development] - Re: AS 7 Persistence Provider Problem

Scott Marlow do-not-reply at jboss.com
Thu Sep 29 09:45:11 EDT 2011


Scott Marlow [http://community.jboss.org/people/smarlow] created the discussion

"Re: AS 7 Persistence Provider Problem"

To view the discussion, visit: http://community.jboss.org/message/629301#629301

--------------------------------------------------------------
> *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">
>   <resources>
>     <resource-root path="eclipselink.jar"/>
>         <!-- Insert resources here -->
>   </resources>
>   <dependencies>
>     <module name="javax.api"/>
>     <module name="javax.transaction.api"/>
>   </dependencies>
> </module>
> 
> 

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 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>
>      <integration><jpa>
>           <eclipselink>
>                - Employee
>                - SessionFactoryTestCase
>                - SFSB1
>                -SFSBEclipselinkSession
>                -SFSBEclipselinkSessionFactory 

Sounds like a good start.


> *Question*:
> 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?
> 
> <properties>
> <property name="jboss.as.jpa.providerModule" value="org.eclipse.persistence" />
> </properties>

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
[http://community.jboss.org/message/629301#629301]

Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110929/d16050e8/attachment.html 


More information about the jboss-dev-forums mailing list