This section covers how to configure the Parasoft JDBC Driver for JBoss.
JBoss application servers (including servers using PostgreSQL) can be configured as follows:
<JBOSS-INSTALL-DIR>/module
create the directories com/parasoft/main
.In the main directory, add ParasoftJDBCDriver.jar and the following module.xml file:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <module xmlns="urn:jboss:module:1.0" name="com.parasoft"> <resources> <resource-root path="ParasoftJDBCDriver.jar"/> </resources> <dependencies> <module name="javax.api"/> <module name="original.module"/> </dependencies> </module> |
For example, if you are using Postgres, replace |
Configure the standalone.xml drivers by adding the following driver xml fragment:
<driver name="parasoft" module="com.parasoft"> <driver-class>com.parasoft.xtest.jdbc.virt.driver.JDBCProxyDriver</driver-class> <xa-datasource-class>parasoft-vendor-specific-xa-datasource</xa-datasource-class> </driver> |
See JDBC Driver Implementation Classes for additional information on vendor-specific driver implementation classes. |
host
, port
and database
with the host, port and database of your server. For example:jdbc:parasoft:proxydriver:<original driver fully qualified class name>:@<original driver connection URL>
jdbc:parasoft:proxydriver:org.postgresql.Driver:@jdbc:postgresql://host:port/database
parasoft.virtualize.driver.proxy.direct=true
.virtualizeServerUrl
, virtualizeGroupId
). For details, see Driver/System Properties Required for All Environments.