JNDI Service provider for the file system

ぃ、小莉子 提交于 2020-01-01 05:09:06

问题


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 somewhere 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.


回答1:


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 pom.xml:

<dependency>
   <groupId>com.sun.messaging.mq</groupId>
   <artifactId>fscontext</artifactId>
   <version>4.6-b01</version>
</dependency>



回答2:


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.




回答3:


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



来源:https://stackoverflow.com/questions/16914368/jndi-service-provider-for-the-file-system

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!