jndi-provider is a fork of the original JBoss JNPServer Project in the version 5.1.0-SNAPSHOT because this project is not maintained anymore.
This fork is reduced to its functionality inside a JVM process.
All functions for the usage with
-
remote registries,
-
starting as a standalone server process with port and ip binding
-
creating a high availibility cluster with other instances
-
acting as client for other jndi servers
and so on are removed. Also all dependencies inherited from jnp-server are removed to reduce the dependency tree size.
This is due to the focus of this fork to be used only in test or standalone environments (aka in JVM-process usage) without any server functionality. This way the code base is reduced (less possible security risks) and thus becomes more maintainable.
If you want to use jndi-provider you have to
-
add this project to your dependencies:
<dependency> <groupId>de.elnarion.jndi</groupId> <artifactId>jndi-provider</artifactId> <version>1.0.0</version> </dependency>
-
create a jndi.properties file with this content in your classpath:
java.naming.factory.initial=de.elnarion.jndi.interfaces.NamingContextFactory java.naming.factory.url.pkgs=de.elnarion.jndi.interfaces
-
start the JNDI-Provider inside your java program:
NamingBeanImpl naming = new NamingBeanImpl(); naming.start();
-
stop the JNDI-Provider after your usage is finished:
naming.stop();
There are more other types of usages which can be found in the Unit test cases. This is only the common one.
This software is licensed under the GNU LESSER GENERAL PUBLIC LICENSE, Version 2.1. Note that using jndi-provider comes without any (legal) warranties.
This project uses sematic versioning. For more information refer to semver.
This plugin has a dedicated Changelog.
Latest and greatest source of jndi-provider can be found on GitHub. Fork it!