jboss和mysql之间没有问题了?jboss缺省情况下是用hypersonic作为数据库的。需要修改一些文件才能使用mysql作为数据库。对了,你的jboss的版本是?

解决方案 »

  1.   

    我的jboss的版本是mysql-3.23.49-win.zip,我是按照一篇文章上所说的配置的,不知是否正确,那请问楼上的老兄,怎么配置才能正确使用MYSQL数据库呢?
    请赐教!
      

  2.   

    配置一个mssql-service.xml或mssql-xa-service.xml(事务)就可以了,具体配置如下:
              <properties>
                <config-property name="ConnectionURL" type="java.lang.String">jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=MyDatabase</config-property>
                <config-property name="DriverClass" type="java.lang.String">com.microsoft.jdbc.sqlserver.SQLServerDriver</config-property>
                <!--set these only if you want only default logins, not through JAAS-->
                <config-property name="UserName" type="java.lang.String"></config-property>
                <config-property name="Password" type="java.lang.String"></config-property>
              </properties>