Versions Compared

Key

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

...

  1. If you haven’t already done so, create the ParaBank project:
    1. Choose File> New> Go to File > New > Project.
    2. Choose Virtualize> Virtualize > ParaBank Example Project, then  and click Next.
    3. Enter a name for the project, then click Finish.
  2. Ensure that the project is configured to build automatically: open the Java perspective, select the ParaBank project, open the Project menu, then ensure that Build automatically is enabled.
  3. Copy the ParasoftJDBCDriver.jar file to ParaBank/WebContentParabank/src/main/webapp/WEB-INF/lib.
    • For example, on Windows, this might be C:\Users\<username><USERNAME>\parasoft\<your_workspace>\ParaBank\WebContent\<YOUR-WORKSPACE>\Parabank\src\main\webapp\WEB-INF\lib.
  4. Edit the jdbc.properties file in the ParaBank/src/jdbc.properties file director to read as follows (with no extra spaces):
    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=
  5. In Virtualize, open the Java perspective then choose Run> Run > Run Configurations.
  6. Select Apache Tomcat> Tomcat > ParaBank Tomcat 8.5 Server.
  7. Under the Arguments tab, add the following Parasoft JDBC Driver flags to what is already listed in the VM arguments section:

    Code Block
    languagetext
    -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

  8. Start (or restart) the ParaBank server with the updated Run Configuration.
  9. Log in to ParaBank.

...

  1. Open the Java perspective.
  2. Open the Servers view.
  3. In the Servers view, right-click the ParaBank Tomcat server , then and choose Clean.
  4. Restart Right-click the ParaBank Tomcat server (right-click it, then and choose Restart).