在 JBoss 7 中,文件系统分为两部分:
<span style="font-family:FangSong_GB2312;"><?xml version="1.0" encoding="UTF-8"?> <module xmlns="urn:jboss:module:1.0" <span style="color:#ff0000;">name="com.oracle"</span>> <resources> <!-- Insert resources here --> <resource-root path="<span style="color:#33cc00;">ojdbc6.jar</span>"/> </resources> <dependencies> <module name="javax.api"/> <module name="javax.transaction.api"/> </dependencies> </module></span>
<span style="font-family:FangSong_GB2312;"><subsystem xmlns="urn:jboss:domain:datasources:1.0"> <datasources> <datasource jndi-name="myDS" pool-name="myDS" enabled="true" jta="true" use-java-context="true" use-ccm="true"> <connection-url>jdbc:oracle:thin:@address:1521:实例名</connection-url> <driver-class>oracle.jdbc.driver.OracleDriver</driver-class> <driver><span style="color:#000099;">oracle</span></driver> <pool> <min-pool-size>30</min-pool-size> <max-pool-size>50</max-pool-size> <prefill>true</prefill> <use-strict-min>false</use-strict-min> <flush-strategy>FailingConnectionOnly</flush-strategy> </pool> <security> <user-name>sa</user-name> <password>sa</password> </security> </datasource> <drivers> <driver <span style="color:#000099;">name="oracle"</span> <span style="color:#ff0000;">module="com.oracle</span>"> <xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class> </driver> </drivers> </datasources> </subsystem></span>
原文地址:http://blog.csdn.net/leimengyuanlian/article/details/41621875