TIBCO EMS .NET API 10.3
TIBCO EMS .NET API 10.3
|
Create ILookupContext objects More...
Public Member Functions | |
LookupContextFactory () | |
Default constructor to create a context factory More... | |
override TIBCO.EMS.ILookupContext | CreateContext (String name, Hashtable props) |
Returns the initial context used to search for administered objects More... | |
![]() | |
LookupContextFactory () | |
Default constructor to create a context factory More... | |
Additional Inherited Members | |
![]() | |
const String | LDAP_CONTEXT = "ldap" |
Public const string to create a ldap context to lookup administered object in an ldap server. More... | |
const String | TIBJMS_NAMING_CONTEXT = "tibjmsnaming" |
Public const string to create a tibjmsnaming context to lookup administered object inside the tibjmsnaming server. More... | |
Create ILookupContext objects
To lookup administered objects (ConnectionFactories, Topics and Queues) in either a third-party LDAP naming server or the TIBCO EMS Naming server, clients create an instance of the LookupContextFactory and invoke the CreateContext method to get an ILookupContext object.
Users can create an instance of the LookupContextFactory and the invoke the CreateContext method to get a LDAP_CONTEXT or TIBJMS_NAMING_CONTEXT object.
Example for creating a context for looking up objects in the built in naming/directory server
This example shows how to lookup an object in the LDAP server by getting an LdapLookupContext from the LookupConextFactory. By passing a Hashtable filled with keys from LdapLookupConsts and corresponding values, the LookupContext is configured.
|
inline |
Default constructor to create a context factory
|
inlinevirtual |
Returns the initial context used to search for administered objects
This method returns an ILookupContext object that is the initial context used to look up administered object in the EMS server or an LDAP server. The currently supported contexts are tibjmsnaming and ldap.
Before calling CreateContext, first create a hash table of properties (defined in LdapLookupConsts and LookupContext) and their values.
This example demonstrates how to create an initial context for looking up a queue object in the EMS naming server:
This example shows how to look up a connection factory, named testConnFact
, in a third-party LDAP server located at the URL: 10.105.185.30:10389:
This example shows how to look up a connection factory object in the LDAP server via TLS.
name | Can be either:
|
props | Hash table of properties. |
ArgumentException | If name is null or invalid name (anything other than tibjmsnaming or ldap) is specified |
Reimplemented from TIBCO.EMS.LookupContextFactory.