[wildfly-dev] Deploying JDBC driver to WildFly

Brian Stansberry brian.stansberry at redhat.com
Tue Oct 7 16:31:13 EDT 2014


You can deploy the driver as a jar, just like a war, ear etc. Then use 
the deployment name in the driver element of the datasource config.

https://docs.jboss.org/author/display/WFLY9/DataSource+configuration

This old wiki article is pretty good too:

https://developer.jboss.org/wiki/DataSourceConfigurationInAS7

On 10/7/14, 2:50 PM, Arun Gupta wrote:
> I was talking to Adam Bien and he is an avid supporter of WildFly and
> using it in all his projects now. One of his pet peeves is deployment
> of JDBC driver.
>
> He can either bundle it in WEB-INF/lib but prefer to deploy it on the
> application server itself. Currently he deploys it as a JBoss module
> but prefer it to be rather simplistic. His suggestion was to define a
> directory like "standalone/lib/jdbc" and any JAR files copied there
> should be automatically deployed as module.
>
> What is the recommended way to deploy a JDBC driver to WildFly ?
>
> Does it necessarily have to be deployed as JBoss module ? If yes, how
> can this be simplified ?
>
> Cheers
> Arun
>


-- 
Brian Stansberry
Senior Principal Software Engineer
JBoss by Red Hat


More information about the wildfly-dev mailing list