jndi-data-source

Purpose

Allows a data source to be retrieved from a JNDI service.

Contained by

Attributes

Attribute Description Type Default Options Use
initial-context The name of the initial context within which the name will be resolved. This must match the name of the name attribute on the initial-context element defined in the jndi-configuration. xs:string none    required 
name The name of the data source within the initial context. xs:string none    required 

Example

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

Related topics