Skip to content

devlauer/jndi-provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jndi-provider project

Lines of Code Security Rating Vulnerabilities Maintainability Rating Coverage mvn verify

Description

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.

Simple usage

If you want to use jndi-provider you have to

  1. add this project to your dependencies:

    <dependency>
    	<groupId>de.elnarion.jndi</groupId>
    	<artifactId>jndi-provider</artifactId>
    	<version>1.0.0</version>
    </dependency>
  2. 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
  3. start the JNDI-Provider inside your java program:

    NamingBeanImpl naming = new NamingBeanImpl();
    naming.start();
  4. 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.

Licensing

This software is licensed under the GNU LESSER GENERAL PUBLIC LICENSE, Version 2.1. Note that using jndi-provider comes without any (legal) warranties.

Versioning

This project uses sematic versioning. For more information refer to semver.

Changelog

This plugin has a dedicated Changelog.

Reporting bugs and feature requests

Use GitHub issues to create your issues.

Source

Latest and greatest source of jndi-provider can be found on GitHub. Fork it!

About

A fork of JNPServer focused on test and standalone in-VM processes

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages