This documentation is for WSO2 Data Services Server 3.1.0. View the home page of the latest release.

Unknown macro: {next_previous_link3}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

Java Naming and Directory Interface (JNDI) is a Java API (application programming interface) providing naming and directory functionality for Java software clients to discover and look up data and objects via a name. WSO2 Data Services Server supports JNDI InitialContext implementation by inheriting the JNDI implementation of Tomcat (http://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howto.html). JNDI helps decouple object creation from the object look-up. When you have registered a data source with JNDI, others can discover it through a JNDI lookup and use it.

Before creating a data source with JNDI, follow the steps in Creating Data Sources. When you select JNDI as the data source type at the time a data source is created, the JNDI-specific options appear. For example:

The options in the above window are explained below:

JNDI Context Class:

Provider URL:

Resource Name:

You can also expose a RDBMS Carbon data source as a JNDI data source using the Configure > Data Sources menu of the management console. For instructions, see Configuring Data Sources.

To write a query to this data source, see Writing Data Service Queries.

  • No labels