Database Control: Using a Database from Your Web Service

A Database control provides simplified access to a relational database, allowing a web service to call Java methods and operate on Java objects that are appropriate to the operations being performed. The Database control automatically performs the translation from Java objects to database queries and vice versa.

Each Database control is customized to access a particular database and perform particular operations on that database.

A Database control can operate on any database for which an appropriate JDBC (Java Database Connectivity) driver is available and for which a data source is configured in WebLogic Server.

As with all controls (except Timer controls), a Database control is defined in a CTRL file.

All Database controls extend the weblogic.jws.control.DatabaseControl base class.

To learn about WebLogic Workshop controls, see Controls: Using Resources from a Web Service.

# Using an Existing Database Control

To learn how to use an existing Database control, see Using an Existing Database Control.

# Creating a New Database Control

To learn how to create a new Database control, see Creating a New Database Control.

# Database Control Samples

CustomerDBClient.jws Sample

LuckyNumberDBClient.jws Sample

Related Topics

Controls: Using Resources from a Web Service

WebLogic Workshop Projects

CTRL File: Implementing Controls