jdbc-repository

Purpose

Specifies that the MCS repository is a JDBC repository. The name of the repository is defined in the jdbc-policies element.

Note:

Some databases, for example DB2 and z/OS, will only work with short names. In these cases the use-short-names attribute is ignored.

Contains

Contained by

Attributes

Attribute Description Type Default Options Use
use-short-names Determines whether short or descriptive names are used for tables and columns. If set to true then short names are used, otherwise descriptive names are used. The short names are all 18 characters or less. xs:boolean none    optional 
vendor The name of the database vendor xs:string none    optional 

Example

<local-repository>
  <jdbc-repository>
    <jndi-data-source
      initial-context="myContext"
      name="datasourceName"/>
  </jdbc-repository>
<local-repository>

Related topics