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:
What happened to the Sun's JNDI filesystem service provider and is it still possible to get any of its versions somehow/somewhere?
Are their any alternative filesystem SPs for the JNDI?
Thank you in advance for your help.
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.
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.
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.
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>
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With