JBoss下配置資料來源問題
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做一客戶端進行測試時,提示找不到資料來源。
請問這是什麼原因?
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做一客戶端進行測試時,提示找不到資料來源。
請問這是什麼原因?
相關文章
- sbt配置——資料來源問題解決
- springboot 2 Hikari 多資料來源配置問題(dataSourceClassName or jdbcUrl is required)Spring BootJDBCUI
- JBoss安全問題總結
- 多資料來源配置
- 解密JBoss和Weblogic資料來源連線字串和控制檯密碼解密Web字串密碼
- weblogic多資料來源故障轉移問題Web
- springboot+mybatisplus+druid資料來源:SQLException問題Spring BootMyBatisUISQLException
- Spring多資料來源配置Spring
- weblogic配置JDBC資料來源WebJDBC
- springBoot 多資料來源配置Spring Boot
- springboot多資料來源配置Spring Boot
- weblogic GridLink資料來源配置Web
- MyBatis配置多資料來源MyBatis
- SpringBoot配置多資料來源Spring Boot
- SpringBoot | 3.1 配置資料來源Spring Boot
- web 配置多資料來源Web
- 關於 SAP 電商雲 Spartacus UI 路由 routes 配置的資料來源問題UI路由
- 資料來源(DataSource)是什麼以及SpringBoot中資料來源配置Spring Boot
- 1.配置Tomcat資料來源Tomcat
- SpringBoot 配置多資料來源 MyBatisSpring BootMyBatis
- SpringBoot資料來源相關配置Spring Boot
- Spring Boot 多資料來源配置Spring Boot
- Spring Boot 配置多資料來源Spring Boot
- SpringBoot 的多資料來源配置Spring Boot
- Weblogic資料來源配置文件Web
- Springboot通過AOP整合多資料來源,分析@Transaction切換資料來源不生效問題Spring Boot
- Spring 下,關於動態資料來源的事務問題的探討Spring
- conda配置源問題
- DataWorksV2.0新增資料來源典型問題場景
- Spring-Boot 多資料來源配置+動態資料來源切換+多資料來源事物配置實現主從資料庫儲存分離Springboot資料庫
- springboot 配置DRUID資料來源的方法Spring BootUI
- ODBC 常見資料來源配置整理
- BIRT 如何配置動態資料來源
- Spring系列之多個資料來源配置Spring
- Spring系列 之資料來源的配置 資料庫 資料來源 連線池的區別Spring資料庫
- 【Database】可選的資料來源配置項Database
- Jasper 怎麼配置動態資料來源
- SpringBoot整合MyBatisPlus配置動態資料來源Spring BootMyBatis
- Spring全家桶--單資料來源的配置Spring