@jc:connection Annotation

Specifies the data source used by a Database control.

Note: The @jc:connection annotation appears in Database controls with the .jcx extension. Database controls with the .ctrl extension, which were created in a previous version of WebLogic Workshop, use the @jws:connection annotation. Controls with the .ctrl extension continue to be supported in WebLogic Workshop.

Syntax

@jc:connection

data-source-jndi-name="JNDINameofDataSource"

Attributes

data-source-jndi-name

Required. A string specifying the JNDI name of a defined data source. Default: null.

Remarks

The following rules apply to this annotation's use:

JNDI is the Java Naming and Directory Interface. data-source-jndi-name must be a valid name of a data source as it appears in the local JNDI registry.

To learn how to create, configure and register a new data source, please consult the WebLogic Server documentation on JDBC Data Sources.

Two data sources are pre-configured when WebLogic Workshop is installed. Both operate on the default PointBase database system by default. The pre-configured data source names are:

Related Topics

Database Control

How Do I: Connect a Database Control to a Database Such as SQL Server or Oracle?

How Do I: Configure WebLogic Workshop to Use a Different Database for Internal State?

How Do I: WebLogic Workshop-Enable an Existing WebLogic Server Domain?

@jc:sql Annotation