GeeCON Prague 2014*
The moose likes Other JSE/JEE APIs and the fly likes Context Factory - Urgent help please Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Context Factory - Urgent help please" Watch "Context Factory - Urgent help please" New topic
Author

Context Factory - Urgent help please

Ambrose R Tati
Greenhorn

Joined: Nov 06, 2000
Posts: 21
Dear all,
where can I get this class from?com.sun.jndi.fscontext.RefFSContextFactory
So that I can do something like
Hashtable env = new Hashtable(11);
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.fscontext.RefFSContextFactory");
Many thanks
Ambrose Tati
Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 566
ambrose, like i said to the others trying to use jndi, i haven't got it working yet but i need to soon. are you trying to access an LDAP server on your own server, or someone else's?

I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
This is part of the file system service provider. The file system service provider is part of the JNDI software.
You can download it from...
http://java.sun.com/products/jndi/index.html#download

------------------
Tom
Sun Certified Programmer for the Java� 2 Platform
Moderator of the forums:
J2EE and EJB
Other Java APIs


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 566
Hi Tom ,
do you know whether that will help with the LDAP service as well?
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Have you installed an LDAP service?
Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 566
Originally posted by Thomas Paul:
Have you installed an LDAP service?

I'm trying to access a remote LDAP server. Curiously enough even though I have the ldap.jar file installed and can instantiate classes from it, the following code throws the exception "cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory"
Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 566
anybody out there with experience on this? i'm really stuck.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Context Factory - Urgent help please