[jboss-dev-forums] [JBoss AS7 Development] - Re: AS 7 Persistence Provider Problem
Subhra Roy
do-not-reply at jboss.com
Tue Aug 30 14:08:49 EDT 2011
Subhra Roy [http://community.jboss.org/people/subhraroy] created the discussion
"Re: AS 7 Persistence Provider Problem"
To view the discussion, visit: http://community.jboss.org/message/623828#623828
--------------------------------------------------------------
Hi,
It did not work in 7.1.0.Alpha
20:59:49,478 INFO [org.jboss.as.server.controller] (HttpManagementService-threads - 6) Deployment of "aglite-nonosgiweb.war" was rolled back with failure message {"Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"aglite-nonosgiweb.war#aglite-platform-persistence-unit\" missing [jboss.naming.context.java.com.arisglobal.aglite.datasource.agliteDS ]"]}
20:59:49,661 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) Stopped deployment aglite-nonosgiweb.war in 184ms
<persistence-unit name="aglite-platform-persistence-unit" transaction-type="RESOURCE_LOCAL">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
Persistence.xml does not have the <non-jta-datasource>.
We want full control over the way persistence units are managed. To give you a context of why we are doing things this way:-
We don't have the entity classes specified within our persistence XML file. What we are building is a platform which allows applications to be plugged into it. The entity classes will be pushed at runtime through a Spring bean factory post processor. We also need to allow muliple datasources which could be configured per application/customer (user group). We also create entity managers and transacton managers on the fly based on application/customer configuration.
Thus a hardcoded datasource approach won't work for us.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/623828#623828]
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/20110830/1a9616dc/attachment.html
More information about the jboss-dev-forums
mailing list