Add Database Control Dialog

Use this dialog to add a database control to your web service. A database control provides a Java interface between your web service and a database, allowing you to interact with the database via Java method calls.

For more information about creating Database controls, see Creating a New Database Control.

# Step 1

Type the variable name of your database control. When you call database operation methods from your web service, your web service will refer to your database control by this name. It must be a valid Java identifier.

# Step 2

If you already have a database CTRL file within your project, choose "Use a Database Control already defined by a CTRL file" and click the Browse button to select the appropriate CTRL file. To finish the dialog, click "Create".

To create a new database CTRL file, choose "Create a new database control to use with this service" and type the name of the new CTRL file. The word "Control" will be automatically appended to the name you enter.

## Control Factories

If you make this a control factory, web services can dynamically create multiple instances of this control. To learn more about control factories, see Control Factories: Managing Collections of Controls.

# Step 3

If you have chosen to create a new database CTRL file, click the Browse button to select from the data sources available to your database CTRL file. The cgSampleDataSource data source is available for experimentation. To finish the dialog, click "Create".

Related Topics

Controls: Using Resources from a Web Service

Database Control: Using a Database from Your Web Service

Using a Database Control

Creating a New Database Control