六步完成 JBoss 4.0 默認數據源遷移至 MySQL:
CLASSPATH 及 server/default/libdocs/examples/jca/mysql-ds.xml 到 server/default/deploy,修改 <driver-class>com.mysql.jdbc.Driver</driver-class>、<connection-url>jdbc:mysql://<host>/<db></connection-url>mysql-jdbc2-service.xml 替換 hsqldb-jdbc2-service.xmlstandardjaws.xml、standardjbosscmp-jdbc.xml 的 <datasource>java:/MySqlDS</datasource> 及 <type-mapping>mySql</type-mapping>login-config.xml 添加 MySqlDbRealm,模塊 ConfiguredIdentityLoginModule,綁定 ManagedConnectionFactoryNameejb-deployer.xml 中 TIMERS 表 other 類型改為 blob完成上述配置,JBoss 默認數據源即切換為 MySQL。