<jndi-name>itmDS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/jbossdb</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
<password>root</password>
F:\javaEEService\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\docs\examples\jca--------mssql-ds.xml
把修改好之后的mssql-ds.xml文件放到jboss的发布目录:
控制台打印:
12:15:49,718 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=itmDS' to JNDI name 'java:itmDS'
在浏览器上输入:http://localhost:8080/jmx-console/