The LookupContext class provides an interface for users to search and perform queries against the builtin naming/directory server.
For a list of all members of this type, see LookupContext Members.
System.Object
TIBCO.EMS.LookupContext
User can create an instance of the LookupContext and invoke the Lookup(string name)
method which returns the queried object or throw a NamingException in case of failure. The information required to perform a search includes the url of the directory service provider (e.g. the Tibco Enterprise Message Service Server) and user name and password, if necessary. The following is an example of its usage: Hashtable env = new Hashtable();
env.Add(LookupContext.PROVIDER_URL, "tibjmsnaming://localhost:7222");
env.Add(LookupContext.SECURITY_PRINCIPAL", "myUserName");
env.Add(LookupContext.SECURITY_CREDENTIALS", "myPassword");
try {
LookupContext searcher = new LookupContext(env);
TIBCO.EMS.Queue queue = (TIBCO.EMS.Queue)searcher.Lookup("theQueueName");
...
} catch (NamingException) {
...
}
For complete details, see the corresponding item in the book TIBCO Enterprise Message Service .NET Reference.
Namespace: TIBCO.EMS
Assembly: TIBCO.EMS (in TIBCO.EMS.dll, TIBCO.EMS-CF.dll)
LookupContext Members | TIBCO.EMS Namespace