Adding web transaction support to an EGL web project

Before you can use web transactions in your EGL project, you must add support for web transactions to your project. You can do this when you create the project, or add support to an existing project.

Add support for web transactions at the time you create a project:
  • Create a new EGL web project and select the Show Advanced Settings check box on the general settings page of the New EGL Project wizard.
  • Select the EGL support with Legacy Web Transactions check box on the Project Facets page. The Project Facets page is the second page after the general settings page.
Add support for web transactions to an existing EGL web project:
  1. In the Project Explorer view, right-click the EGL web project and then click Properties. The Properties window opens.
  2. In the Properties window, click Project Facets.
  3. Click Add/Remove Project Facets.
  4. In the Project Facets window, select the EGL support with Legacy Web Transaction check box.
  5. Click Finish.
  6. Click OK.
Adding support for web transactions makes the following changes to the project:
  • Jar files are added to the folder WebContent\WEB_INF\lib and to the project's Java build path. These Jar files constitute the runtime support of a web application and the EGL gateway servlet.
  • The following sample and utility files are added to the project's WebContent folder:
    • CSOERRORUIR.jsp
    • EGLWebStartup.jsp
    • Vagen1EntryPage.jsp
    • Vagen1ErrorPage.jsp
    • Vagen1ExpiredPasswordPage.jsp
    • Vagen1LogonPage.jsp
    • vawcg-wp.gif
    • visage.gif
  • Files that set properties for the gateway servlet and information for linkage between web transactions are added to the folder JavaResources\JavaSource. See Gateway servlet parameters and Linkage properties.
  • The gateway servlet is registered in the web configuration file.

You can not remove support for web transactions from a project.

If you want each new EGL web project created to have support for web transactions, open the EGL preferences window and select the EGL support with Legacy Web Transactions check box. See Setting EGL preferences.