-
1. Re: How to use a different version (slot) of a datasource driver?
jaikiran Nov 24, 2014 5:19 AM (in response to aqtwrdnr)1 of 1 people found this helpfulIt doesn't look like the slot attribute is supported for the driver element in the configuration, even with the latest WildFly. Maybe you could file a feature request for it here https://issues.jboss.org/browse/WFLY
A workaround for now is to define the module with a different name (and of course, place it in the right location in the modules directory) and use that module in your driver element configuration.
-
2. Re: How to use a different version (slot) of a datasource driver?
ctomc Nov 24, 2014 8:19 AM (in response to jaikiran)AFAIR there was some change / fix for this to allow configuration like this
<driver name="h2" module="com.h2database.h2:1.3.176">
note the :1.3.176 part.
-
3. Re: How to use a different version (slot) of a datasource driver?
jaysensharma Nov 24, 2014 8:26 AM (in response to aqtwrdnr)1 of 1 people found this helpfulBarry,
Try adding the module=<module-name>:<slot> while defining the driver, As following (suppose your oracle module slots are "1.0" and "main" then in order to use the slot 1.0 use the following):
/subsystem=datasources/jdbc-driver=ojdbc6/:add(driver-module-name=com.oracle.jdbc6:1.0,driver-name=ojdbc6,jdbc-compliant=false)
-
4. Re: How to use a different version (slot) of a datasource driver?
aqtwrdnr Nov 24, 2014 10:24 AM (in response to aqtwrdnr)Thanks for the (quick) answers. I have not (yet) had the time to test whether the proposed solution actually works, but I'll assume it does.
Kind regards,
Barry