Hi

You should use <non-jta-datasource> instead of these properties which
are JSE intended.
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014-01-31 mrLittle <[email protected]>:
> Hi all,
> this is my persistence.xml file:
>
> <?xml version="1.0"?>
> <persistence xmlns="http://java.sun.com/xml/ns/persistence"; version="1.0">
>     <persistence-unit name="STGATE" transaction-type="RESOURCE_LOCAL">
>
> <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
>         <class>....</class>
>         <properties>
>             <property name="openjpa.ConnectionDriverName"
> value="oracle.jdbc.driver.OracleDriver"/>
>             <property name="openjpa.ConnectionURL"
>                       value="jdbc:oracle:thin:@host:port:SID"/>
>             <property name="openjpa.ConnectionUserName" value="user"/>
>             <property name="openjpa.ConnectionPassword" value="pass"/>
>             <property name="openjpa.Log" value="DefaultLevel=WARN,
> Runtime=WARN, Tool=WARN, SQL=WARN"/>
>         </properties>
>     </persistence-unit>
> </persistence>
>
> When I run my application and the embedded container starts I get the
> following warnings.
>
> AVVERTENZA: Removing PersistenceUnit(name=STGATE) property
> openjpa.ConnectionPassword=pass  [not valid in a container environment]
> 31-gen-2014 10.17.06
> org.apache.openejb.config.AppInfoBuilder$PersistenceProviderProperties apply
> AVVERTENZA: Removing PersistenceUnit(name=STGATE) property
> openjpa.ConnectionDriverName=oracle.jdbc.driver.OracleDriver  [not valid in
> a container environment]
> 31-gen-2014 10.17.06
> org.apache.openejb.config.AppInfoBuilder$PersistenceProviderProperties apply
> AVVERTENZA: Removing PersistenceUnit(name=STGATE) property
> openjpa.ConnectionUserName=user [not valid in a container environment]
> 31-gen-2014 10.17.06
> org.apache.openejb.config.AppInfoBuilder$PersistenceProviderProperties apply
> AVVERTENZA: Removing PersistenceUnit(name=STGATE) property
> openjpa.ConnectionURL=jdbc:oracle:thin:@host:port:SID [not valid in a
> container environment]
>
> Everything seems to work propertly, I have a @Stateless EJB where I
> instantiate the EntityManagerFactory and the EntityManager and so on...
>
> But I'd like to understand the meaning of those messages.
>
> Thank you guys.
>
> Bests,
>
>
>
> --
> View this message in context: 
> http://openejb.979440.n4.nabble.com/Warning-persistence-unit-configuration-tp4667381.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to