The JNDI module provide a lightweight JNDI context thanks to Tyrex Naming.

The Java Naming and Directory Interface (JNDI) is a Java API for a directory service that allows Java software clients to discover and look up data and objects via a name.

— Wikipedia
https://en.wikipedia.org/wiki/Java_Naming_and_Directory_Interface
Tip
JNDI Documentation

This documentation do not cover JNDI, the Java API to work with databases, as it is already well covered on the interwebs. If you need guidance in that matter, we recommend you to head over at the official JNDI tutorial.

Declaration

In order to use the JNDIPlugin you must add a dependency to io.werval.modules.jndi and register the plugin in your configuration.

When using Gradle:

build.gradle
compile 'io.werval:io.werval.modules.jndi:{werval-version}'

When using Maven:

pom.xml
<dependency>
    <groupId>io.werval</groupId>
    <artifactId>io.werval.modules.jndi</artifactId>
    <version>{werval-version}</version>
</dependency>

And finally your application configuration:

application.conf
app.plugins.enabled += jndi

Configuration

Usage