如何使用Wildfly 9上的Windows服务用户对数据库进行身份验证?

时间:2019-05-23 19:00:47

标签: wildfly

我正在配置数据源以使用配置Wildfly服务的Windows身份验证。

我在连接URL中输入了“ integratedSecurity = true”参数:

<datasource jndi-name="java:/DBEASYFINANCE2_D0000" pool-name="java:/DBEASYFINANCE2_D0000" enabled="true">
                    <connection-url>jdbc:jtds:sqlserver://SRVXX:1433;databaseName=DB_XXX;integratedSecurity=true</connection-url>
                    <driver>jtds</driver>
                    <pool>
                        <min-pool-size>0</min-pool-size>
                        <max-pool-size>100</max-pool-size>
                    </pool>
                    <validation>
                        <check-valid-connection-sql>select ''</check-valid-connection-sql>
                        <validate-on-match>true</validate-on-match>
                    </validation>
                    <timeout>
                        <blocking-timeout-millis>30000</blocking-timeout-millis>
                        <idle-timeout-minutes>5</idle-timeout-minutes>
                        <use-try-lock>60</use-try-lock>
                    </timeout>
                </datasource>

当我在数据源上运行连接测试时,会发生错误:

Unexpected HTTP response: 500

Request
{
    "address" => [
        ("subsystem" => "datasources"),
        ("data-source" => "java:/DBEASYFINANCE2_D0000")
    ],
    "operation" => "test-connection-in-pool"
}

Response

Internal Server Error
{
    "outcome" => "failed",
    "failure-description" => "WFLYJCA0040: failed to invoke operation: WFLYJCA0047: Connection is not valid",
    "rolled-back" => true
}

我正在使用Wildfly 9。

您能告诉我我的配置出了什么问题吗?

0 个答案:

没有答案