Reputation: 3219
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.
Upvotes: 10
Views: 3472
Reputation: 765
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>
Upvotes: 5
Reputation: 503
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.
Upvotes: 2
Reputation: 685
You can possibly dowload it from Maven Central
<dependency>
<groupId>com.sun.jndi</groupId>
<artifactId>fscontext</artifactId>
<version>1.2-beta-3</version>
</dependency>
Searching for alternative leads to SwiftMQ implementation
Upvotes: 1