[jboss-jira] [JBoss JIRA] Commented: (EJBTHREE-1193) Persistence Unit Parsing Deploy ignores the Provider attribute in persistence.xml
Emmanuel Bernard (JIRA)
jira-events at lists.jboss.org
Tue Feb 19 09:11:32 EST 2008
[ http://jira.jboss.com/jira/browse/EJBTHREE-1193?page=comments#action_12399865 ]
Emmanuel Bernard commented on EJBTHREE-1193:
--------------------------------------------
The application server has to parse the persistence.xml, hence the logs. It does not mean it will use Hibernate (the JPA implementation) underneath,
Why do you think Hibernate is used?
> Persistence Unit Parsing Deploy ignores the Provider attribute in persistence.xml
> ---------------------------------------------------------------------------------
>
> Key: EJBTHREE-1193
> URL: http://jira.jboss.com/jira/browse/EJBTHREE-1193
> Project: EJB 3.0
> Issue Type: Bug
> Affects Versions: AS 5.0.0.Beta4
> Reporter: Ming Fai Ma
>
> The EJB3 Persistence Unit parsing deployer read and try to start and install a persistence unit with JBoss PersistenceUnitDeployment even though a "provider" attribute is specified to use another JPA implementation.
> 14:53:17,368 INFO [PersistenceUnitParsingDeployer] Found persistence units [org.jboss.ejb3.metadata.jpa.spec.PersistenceUnitMetaData at 4de8d8{name=MyApp}]
> 14:53:18,431 INFO [PersistenceUnitParsingDeployer] Found persistence units [org.jboss.ejb3.metadata.jpa.spec.PersistenceUnitMetaData at 778590{name=MyAppWeb}, org.jboss.ejb3.metadata.jpa.spec.PersistenceUnitMetaData at e1ccdf{name=MyApp}]
> 14:53:39,540 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.units:ear=CyberGameCityApp.ear,unitName=CyberGameCityAppWeb
> ...
> org.jboss.ejb3.entity.PersistenceUnitDeployment.start()
> Persistence.xml
> ----------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <persistence xmlns="http://java.sun.com/xml/ns/persistence"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> version="1.0">
> <persistence-unit name="MyApp" transaction-type="RESOURCE_LOCAL">
> <provider>
> org.apache.openjpa.persistence.PersistenceProviderImpl
> </provider>
> <jta-data-source>java:/jdbc/MyDataSource</jta-data-source>
> <jar-file>MyJar.jar</jar-file>
> </persistence-unit>
> </persistence>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list