This documentation is for WSO2 Carbon 4.4.3. View documentation for the latest release.
Carbon JNDI Resources - Carbon 4.4.3 - WSO2 Documentation
Due to a known issue do not use JDK1.8.0_151 with WSO2 products. Use JDK 1.8.0_144 until JDK 1.8.0_162-ea is released.
Skip to end of metadata
Go to start of metadata

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. 

These resources can be accessed using an InitialContext object.


Context initCtx = new InitialContext();
DataSource ds = (DataSource) initCtx.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