Class
Retrieve objects from the server’s naming directory.
The context object establishes communication with the EMS server, authenticates the user, and submits name queries.
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) { ... }
Member
|
Description
|
---|---|
Properties
|
|
Settings
|
System.Collections.Hashtable {get;}
Programs can get a copy of the context’s current settings.
|
Fields
Programs use these constants as names of context settings (in argument hashtables or individually).
|
|
PROVIDER_URL
|
string
URL of the naming server (EMS server).
|
SECURITY_CREDENTIALS
|
string
User password of the client program.
|
SECURITY_PRINCIPAL
|
string
User name of the client program.
|
URL_LIST
|
string
ArrayList of URLs of naming servers (EMS servers).
This property lets programs specify URLs as an
ArrayList , rather than as a string (as with PROVIDER_URL ).
|
URL_SEPARATOR
|
string
Syntactic separator between URLs in the
PROVIDER_URL .
|
TIBCO Enterprise Message Service™ .NET Reference System Release 4.3, February 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |