Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JNDI Service provider for the file system

Tags:

java

jndi

I was looking for the Java Naming and Directory Interface (JNDI) service provider for the file system.

As far as I know, Oracle ships bundled with the JDK only service providers for RMI, DNS, LDAP and COS. It looks like Sun used to provide one, because my Google search returned a number of Web-sites and forums including Coderanch where people suggested downloading the file system SP from Sun's JNDI page, but that page now redirects to Java Technetwork's main page. Also, Oracle's JNDI page gives no information about the file system SP while in the JNDI trail of the Java tutorial they suggest you to download it from the above-mentioned JNDI page and provide examples of using it to look up a name. Search on the Oracle's Web-site also did not yield anything.

My question is composed of two parts:

  1. What happened to the Sun's JNDI filesystem service provider and is it still possible to get any of its versions somehow/somewhere?

  2. Are their any alternative filesystem SPs for the JNDI?

Thank you in advance for your help.

like image 977
akhilless Avatar asked Jun 04 '13 09:06

akhilless


People also ask

What is JNDI used for?

The Java Naming and Directory Interface™ (JNDI) is an application programming interface (API) that provides naming and directory functionality to applications written using the Java™ programming language. It is defined to be independent of any specific directory service implementation.

Is LDAP a JNDI?

The Lightweight Directory Access Protocol (LDAP) is an Internet standard for accessing directory services. The JNDI/LDAP service provider provides access to servers implementing the LDAP protocols. This document describes the features of the LDAP service provider.

How does JNDI LDAP work?

Both the JNDI and LDAP models define a hierarchical namespace in which you name objects. Each object in the namespace may have attributes that can be used to search for the object. At this high level, the two models are similar, so it is not surprising that the JNDI maps well to the LDAP.


2 Answers

Not found in maven central and mvnrepository.com and jfrog. Currently (2015) found at oracle archive to download manually and for maven a similar dependency here is the following pom.xml.

See MVNRepository.com. Not updated for a decade now, as of 2021-03 the last update was 2011-04.

<dependency>
   <groupId>com.sun.messaging.mq</groupId>
   <artifactId>fscontext</artifactId>
   <version>4.6-b01</version>
</dependency>
like image 169
Huluvu424242 Avatar answered Sep 27 '22 19:09

Huluvu424242


I was able to download this library from oracle's archive downloads. This page contains long list of downloads. Try [Ctrl+F] for "File System Service Provider, 1.2 Beta 3". The jar file is 14 years old :) It was released on Mar 29, 2000.

like image 41
danny_23 Avatar answered Sep 27 '22 19:09

danny_23