JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Java CAPS Database Binding Component Tutorial     Java CAPS Documentation
search filter icon
search icon

Document Information

Using the Database Binding Component

Tutorial Plan

Database Binding Component Project in a Nutshell

Starting the GlassFish V2 Application Server

To Start the GlassFish V2 Application Server From NetBeans IDE

Creating a BPEL Module Project For Table Type Operations

To Create a BPEL Module Project

Connecting to a MySQL Database

To Connect to a MySQL Database

Starting the GlassFish Admin Console

To Start the Admin Console

Setting Up Database Access

Integrating a JDBC Driver

To Integrate a JDBC Driver

Creating a JDBC Connection Pool

To Create a JDBC Connection Pool

To Create a JDBC Resource

Creating a WSDL Document For Type : DATABASE

To Create a WSDL Document : dbWSDL

To Select the Database Connection

To Edit the SQL Code

Source View

Creating a WSDL Document For Type SOAP

To Create a WSDL Document : SOAPWSDL

Creating a BPEL Process

To Create a BPEL Process

To Add a Partner Link

To Add a Web Service and Basic Activities

To Edit Web Service : Receive1

To Edit the Web Service : Invoke1

To Edit the Web Service : Reply1

To Edit the Basic Activities : Assign1

To Edit the Basic Activities : Assign2

Validating BPEL

To Invoke Explicit Validation

Design View : Notifications

The Design View

Creating the Composite Application Project

To Create the Composite Application Project

Deploying and Testing the Composite Application

To Deploy the Composite Application

To Test the Composite Application

Debug the Test Case

To Debug the Test Case

Creating a BPEL Module Process Using Prepared Statements

Creating a BPEL Module Project Using Procedures

Creating a BPEL Module Project Using SQL File

Connecting to a MySQL Database

Connections to databases are managed using database drivers, which enable applications written in different programming languages to interact with the database management system. Java CAPS include the MySQL Native (mysql-connector-java-5.1.5-bin.jar), which is a Java implementation of the JDBC API, and communicates directly with the MySQL Driver.

To Connect to a MySQL Database

  1. Click Services tab.
  2. Expand the Drivers node from the Database Explorer. Right-click the MySQL (Connector/J driver) and select Connect Using.

    The New Database Connection dialog box is displayed.


    image:My SQL Connection
  3. In the Basic Setting tab, enter the Database's URL in the corresponding text field.

    The URL identifies the type and location of a database server. The format is jdbc:mysql://hostname:port/database_name.

  4. Enter User Name and Password.

    Note - Select the Remember password option. This is optional.



    image:Database Connection
  5. Click OK to accept the credentials.

    This displays a new Connection node in the Database Explorer under the Databases node.


    image:Password Handling
  6. Click OK to accept the default schema.
  7. Right-click the MySQL Database URL in the Services window (Ctrl-5). Click Connect.

    This opens the New Database Connection dialog box.


    image:MySQL Database

    The illustration shows that the Database Connection is enabled.


    image:Database Driver Enabled

    You are now connected to the MySQL RDBMS in the IDE.