Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space FUNCTDEV and version SVC2024.1

...

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. 

  1. Open the <SOATEST/VIRTUALIZE_INSTALL>/proxies directory
  2. Copy the ParasoftJDBCDriver.jar file to the <WORKSPACE>/ParaBank/WebContent/WEB-INF/lib directory.
     
  3. 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= 
     


  4. In the Virtualize desktop, open the Java perspective then choose Run>  Run > Run Configurations
  5. Choose Apache Tomcat> Tomcat > ParaBank Tomcat 9.0 Server
  6. 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 
     


  7. 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.

...