[jboss-dev-forums] [JBoss AS7 Development] - Data Source Configuration in AS 7

Armen Arzumanyan do-not-reply at jboss.com
Wed Nov 16 03:34:21 EST 2011


Armen Arzumanyan [http://community.jboss.org/people/armdev] commented on the document

"Data Source Configuration in AS 7"

To view all comments on this document, visit: http://community.jboss.org/docs/DOC-16657#comment-8203

--------------------------------------------------
Hi Alli, how can we call datasource from percictance-unit??
If my DS name is newsportal under glassfish I just write newsportl in the p.unit.
<persistence-unit name="jmagazinePU" transaction-type="JTA">
    <provider>org.hibernate.ejb.HibernatePersistence</provider>
    <jta-data-source>newsportal</jta-data-source>
    <exclude-unlisted-classes>false</exclude-unlisted-classes>
     <properties>
      <property name="hibernate.connection.useUnicode" value="true"/>
      <property name="hibernate.connection.characterEncoding" value="UTF-8"/>
      <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
      <property name="hibernate.hbm2ddl.auto" value="none"/>
    </properties>
  </persistence-unit>

Also Where we can copy-paste mysql jdbc driver? Stiil I can not configure DS under JBoss7 and use it with p.unit.

Thanks
--------------------------------------------------

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


More information about the jboss-dev-forums mailing list