LookupContext


Class

Declaration

class LookupContext 

Purpose

Retrieve objects from the server’s naming directory.

Remarks

The context object establishes communication with the EMS server, authenticates the user, and submits name queries.

Example 3 Naming Server Lookup
 
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) 
               { 
                ... 
               } 

(Sheet 1 of 2)

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.

 

Method
Description
Page
Constructor.
184
185
186
187


TIBCO Enterprise Message Service™ .NET Reference
System Release 4.3, February 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com