Using the DataDirect Connect for JDBC™ Drivers with JBoss

View PDF
Download Sample Code (.zip)

Introduction

This document explains the steps required to use the DataDirect Connect® for JDBC® drivers with the JBoss Application Server1. These steps include:

  1. Install DataDirect Connect for JDBC.
  2. Create a data source. A sample data source file, datadirect-ds.xml, is available with this document.
  3. Generate the JavaServer Page (JSP) test page. A sample JSP test page is provided in the JBossTestWeb.war file, which is available with this document.
  4. Deploy the JBoss web application to the JBoss server.
  5. Run the JBoss web application.
  6. Map a data source to a local Java Naming and Directory Interface (JNDI) name in a Session Enterprise Java Bean (EJB).
  7. Specify the data source for an Entity EJB.

Detailed information about each of these steps is included in the following sections.

Table of Contents

Install DataDirect Connect for JDBC

Create a Data Source

Generate the JSP Test Page

Deploy the JBossTest Web Application to the JBoss Application Server

Run the JBossTest Web Application

Map the Data Source to a Local JNDI Name in a Session EJB

Specify the Data Source for an Entity EJB

Ready to try DataDirect Connect for JDBC?
Download Now | Learn More
Ready to try DataDirect Connect for JDBC?