Unknown macro: {next_previous_links}
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

Version 1 Next »

Java Naming and Directory Interface (JNDI) is a Java Application Programming Interface (API) providing naming and directory functionality for Java software clients to discover and look up data and objects via a name.  

Carbon maintains platform level JNDI resources such as Carbon DataSources, Transaction Manager etc.

Applications deployed in WSO2 Application Server (such as web applications, Axis2 services etc.) can access them using an InitialContext object.

Example

 

Context initCtx = new InitialContext();
DataSource ds = (DataSource) initialContext.lookup("jndi_name");

Carbon JNDI resources inherit the multi tenant behavior from the Carbon platform. As a result, JNDI resources registered at tenant level can only be accessed by that particular tenant.

 

 

  • No labels