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.
@jc:connection
data-source-jndi-name="JNDINameofDataSource"
Required. A string specifying the JNDI name of a defined data source. Default: null.
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: