tibemsLookupContext_Lookup
Function
C Declaration
tibems_status tibemsLookupContext_Lookup( tibemsLookupContext context, const char* name, void** object); tibems_status tibemsLookupContext_LookupDestination( tibemsLookupContext context, const char* name, tibemsDestination* destination); tibems_status tibemsLookupContext_LookupConnectionFactory( tibemsLookupContext context, const char* name, tibemsConnectionFactory* factory);
COBOL Call
CALL "tibemsLookupContext_Lookup" USING BY VALUE context, BY REFERENCE name, BY REFERENCE object, RETURNING tibems-status END-CALL. CALL "tibemsLookupContext_LookupDestination" USING BY VALUE context, BY REFERENCE name, BY REFERENCE destination, RETURNING tibems-status END-CALL. CALL "tibemsLookupContext_LookupConnectionFactory" USING BY VALUE context, BY REFERENCE name, BY REFERENCE factory, RETURNING tibems-status END-CALL.
Remarks
These calls look up names in the name server portion of an EMS server.
The first call looks up a generic object; the calling program must cast the result to the expect type. The other calls restrict lookup to either destinations or connection factories.
If the server does not find the name, this call returns TIBEMS_NOT_FOUND.
If the server finds both a topic and a queue with the same name, this call returns TIBEMS_ILLEGAL_STATE.
The calling program must destroy the resulting object when it is no longer needed.
Copyright © 2021. Cloud Software Group, Inc. All Rights Reserved.