seam的oracle 11g连接配置

首先将ojdbc6.jar复制到x:\jboss\server\default\lib;
其次修改JBoss 连接池配置oracle-ds.xml
<datasources>
  <local-tx-datasource>
    <jndi-name>myjndiname</jndi-name>
    <connection-url>jdbc:oracle:thin:@127.0.0.1:1521:MyDb</connection-url>

    <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
    <user-name>myusename</user-name>
    <password>mypassword</password>

      <metadata>
         <type-mapping>Oracle11g</type-mapping>
      </metadata>
  </local-tx-datasource>

</datasources>

最后修改persistence.xml
<property name="hibernate.dialect" value="org.hibernate.dialect.OracleDialect" />

你可能感兴趣的:(java,oracle,jboss,jdbc,seam)