It's because I'm using that object in another application which is in other server.. so the class implementation needs to be known and we're only supposed to have the interface declaration in the client app... when I cast the object in the client app will cast the object resulting from the...
Hello, thanks for your response, well when I created the DirContext with DirContest ctx = new InitialDirContext(); and then I try to bind the object to a JNDI name I get 12:29:51,590 INFO [STDOUT] javax.naming.NotContextException: Not an instance of DirContext, and I'm using the DirContext...
Well, I'm really new in LDAP and I'm on the need of binding in a JNDI name an object along with its class definition, so it can be used by any code that invokes the jdni name... do you know another work-around for that?
Thanks for your response, do you know how I can set a server so it'd be listening to my ldap requests?, I'm currently working with Jboss and I can't find any info regarding of how to enable the ldap feature, thanks..
Hi, I wanto to access an object from a remote app, the client app which would perform the lookup will have to have a interface declaration of the object so it could try to cast when performing the look up, but then how do you get the implementation of the interface?, I've been reading that you...
Hello, so you mean the client application needs to have an interface of what I'm trying to cast?, I thought about it before but just wanted to be sure that there were other options, I think there is no other way right?, what you think, thanks.
Hi guys there's an example of how to bound an object along with its codebase in the sun jndi tutorial
import javax.naming.*;
import javax.naming.directory.*;
import java.util.Hashtable;
/**
* Demonstrates how to bind a Serializable object to a directory
* with a codebase.
* (Use Unbind to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.