JBoss下配置資料來源問題

fwang3發表於2003-09-04
JBoss下配置Mysql資料來源(jboss3.0),把docs\examples\jca目錄下的mysql-service.xml檔案複製至Jboss的server\default\deploy目錄下,並修改了其中URL中的localhost和Database,提示釋出成功。
13:30:40,078 INFO [MySqlDS] Bound connection factory for resou
s LocalTransaction JDBC Wrapper´ to JNDI name ´java:/MySqlDS´
下面是mysql-service.xml片段:
<mbean code="org.jboss.resource.connectionmanager.RARDeployment" name="jboss.jca:service=LocalTxDS,name=MySqlDS">

<attribute name="JndiName">MySqlDS</attribute>

<attribute name="ManagedConnectionFactoryProperties">
<properties>
<config-property name="ConnectionURL" type="java.lang.String">jdbc:mysql://localhost:3306/jdbc</config-property>
<config-property name="DriverClass" type="java.lang.String">com.mysql.jdbc.Driver</config-property>
<!--set these only if you want only default logins, not through JAAS -->
<config-property name="UserName" type="java.lang.String">swm</config-property>
<config-property name="Password" type="java.lang.String">swm</config-property>
</properties>

</attribute>

但在用JB做一客戶端進行測試時,提示找不到資料來源。
請問這是什麼原因?

相關文章