This section describes the guidelines for deploying DataDirect XQuery® on an application server running IBM WebSphere Application Server V6.1.
- Start the WebSphere Administrative Console.
- Install DataDirect XQuery® in WebSphere.
- Browse to Resources < JDBC < JDBC Providers, and choose Create a New JDBC Provider.
-
The Create a New JDBC Provider window appears.
![](https://d117h1jjiq768j.cloudfront.net/images/default-source/default-album/tutorialimages-album/websphere-jdbc-provider.gif?sfvrsn=ab40bdf4_1)
- 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"
- Click Next.
-
The Database Classpath Information window appears.
![](https://d117h1jjiq768j.cloudfront.net/images/default-source/default-album/tutorialimages-album/websphere-jdbc-classpath.gif?sfvrsn=85406d66_1)
- Specify all the DataDirect XQuery jar files; these files are in the \lib directory of your DataDirect XQuery installation.
- Click Next.
- Approve the information entered in the previous step.
- Click Next to complete the JDBC provider definition.
- Next, create a JDBC DataSource resource.
- Browse to Resources < JDBC < Data Sources, and choose Create a New JDBC Data Source.
-
The Create a Data Source window appears.
![](https://d117h1jjiq768j.cloudfront.net/images/default-source/default-album/tutorialimages-album/websphere-jdbc-datasource.gif?sfvrsn=c85433f1_1)
- Specify the following properties with the values shown here:
- Data source name — "DDXQExample"
- JNDI name — "jdbc/DDXQExample"
- Click Next.
-
The Enter database specific properties for the data source window appears.
![](https://d117h1jjiq768j.cloudfront.net/images/default-source/default-album/tutorialimages-album/websphere-jdbc-choose.gif?sfvrsn=e840854e_1)
- Select the Select an existing JDBC provider radio button, and choose "DataDirect XQuery JDBC Driver".
- Click Next and confirm the information you have just entered.
- Next, set the properties for the DDXQExample on the Data sources configuration window.
-
![](https://d117h1jjiq768j.cloudfront.net/images/default-source/default-album/tutorialimages-album/websphere-jdbc-example.gif?sfvrsn=6feba539_1)
- Specify "DDXQExample" in the Name field on the Configuration tab, and then choose Custom properties.
-
The Custom properties window appears.
![](https://d117h1jjiq768j.cloudfront.net/images/default-source/default-album/tutorialimages-album/jdbc-example-properties.gif?sfvrsn=908b9173_1)
- Add the required data source properties.
- Deploy the servlet by browsing to Applications < Install New Application, and choose to deploy DDXQServlet.ear .
- 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®.