-
1. Re: How to add SQL Server datasource in Wildfly 14.0.1
mayerw01 Nov 10, 2018 6:32 AM (in response to sunil.sindhu2)You may check this link JDBC Driver / DataSource Setup · HAL Management Console
My module.xml looks like this:
<module xmlns="urn:jboss:module:1.3" name="com.mssql">
<resources>
<resource-root path="mssql-jdbc-7.0.0.jre10.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
</dependencies>
</module>
The driver and datasource definitions can be easily done via the Management console via Configuration -> Subsystems -> Datasources & Drivers
The url might look like:
jdbc:sqlserver://{hostname}:1433;databaseName={databaseName};instanceName={InstanceName}
-
2. Re: How to add SQL Server datasource in Wildfly 14.0.1
simkam Nov 13, 2018 4:01 AM (in response to mayerw01)Hi,
when defined <datasource-class> has precedence over <driver-class>. So either undefine it and <driver-class> will be used or set connection properties instead of connection-url.