...
We’ll start by deploying the ParasoftJDBC driver to Parabank and configuring a connection to the SOAtest/Virtualizer server. The Parasoft JDBC driver is a special JDBC driver that can act as a man-in-the-middle between the application and its regular JDBC driver. See About the Parasoft JDBC Driver to learn.
- Open the
<SOATEST/VIRTUALIZE_INSTALL>/proxies
directory - Copy the ParasoftJDBCDriver.jar file to the
<WORKSPACE>/ParaBank/WebContent/WEB-INF/lib
directory.
Open the jdbc.properties file in the
ParaBank/src/
jdbc.properties file directory and specify the following settings:No Format jdbc.driverClassName=com.parasoft.xtest.jdbc.virt.driver.JDBCProxyDriver jdbc.url=jdbc:parasoft:proxydriver:org.hsqldb.jdbcDriver:@jdbc:hsqldb:hsql://localhost/parabank jdbc.username=sa jdbc.password=
- In the Virtualize desktop, open the Java perspective then choose Run> Run > Run Configurations.
- Choose Apache Tomcat> Tomcat > ParaBank Tomcat 9.0 Server.
Under the Arguments tab tab, add the following Parasoft JDBC Driver flags to what is already listed in the VM arguments section:
No Format -Dparasoft.virtualize.server.url=http://localhost:9080 -Dparasoft.virtualize.group.id=parabank -Dparasoft.virtualize.driver.register.jdbcproxydriver.in.drivermanager=true -Dparasoft.virtualize.driver.proxy.direct=true
- Restart the ParaBank server with the updated run configuration. You can open the console view in Virtualize desktop and log in and out of the ParaBank to verify that the proxy is working.
...