N. America: 800 876 3101 | World: 44 (0) 1753 218 930

Deploying DataDirect XQuery® on IBM WebSphere Application Server

This section describes the guidelines for deploying DataDirect XQuery® on an application server running IBM WebSphere Application Server V6.1.


  1. Start the WebSphere Administrative Console.
  2. Install DataDirect XQuery® in WebSphere.

    1. Browse to Resources < JDBC < JDBC Providers, and choose Create a New JDBC Provider.
    2. The Create a New JDBC Provider window appears.



    3. Specify the following properties with the values shown here:
      • Database type — "User-defined"
      • Implementation class name — "com.ddtek.xquery3.jdbc.XQueryConnectionPoolDataSource"
      • Name — "DataDirect XQuery JDBC Provider"
    4. Click Next.
    5. The Database Classpath Information window appears.



    6. Specify all the DataDirect XQuery jar files; these files are in the \lib directory of your DataDirect XQuery installation.
    7. Click Next.
    8. Approve the information entered in the previous step.
    9. Click Next to complete the JDBC provider definition.
    10. Next, create a JDBC DataSource resource.
    11. Browse to Resources < JDBC < Data Sources, and choose Create a New JDBC Data Source.
    12. The Create a Data Source window appears.



    13. Specify the following properties with the values shown here:
      • Data source name — "DDXQExample"
      • JNDI name — "jdbc/DDXQExample"
    14. Click Next.
    15. The Enter database specific properties for the data source window appears.



    16. Select the Select an existing JDBC provider radio button, and choose "DataDirect XQuery JDBC Driver".
    17. Click Next and confirm the information you have just entered.
    18. Next, set the properties for the DDXQExample on the Data sources configuration window.



    19. Specify "DDXQExample" in the Name field on the Configuration tab, and then choose Custom properties.
    20. The Custom properties window appears.



    21. Add the required data source properties.

  3. Deploy the servlet by browsing to Applications < Install New Application, and choose to deploy DDXQServlet.ear .
  4. Open your Web browser and point it to http://myserver:9080/DDXQServlet/.

Example

See the Example: JDBC Connection Pooling Servlet for an example of implementing a JDBC connection pool in DataDirect XQuery®.