Problem Statement: We are interested to log the calls processed through uno remote bridge (urp bridge). For each interface method invoked through uno remote bridge (urp bridge), we are interested to generate unique id and log the same on client side as well as on server side.
Following points describes the complete scenario: 1. There are two interface methods in “inf” interface: “method1” and “method2”. 2. A component “comp” implements “inf”. 3. At run time “comp” and “client” runs in separate processes. 4. The client calls “method1()” and “method2()” on “inf” reference. 5. When the client calls “inf->method1()” or “inf->method2()”, the call passes through the urp library and then it is received by the “comp”. Method we used for logging: We intercepted following methods: - “thisDispatch()” method in “OOG680_m5/bridges/source/remote/static/remote.cxx” file of urp bridge library for logging the client side messages. - “thisDispatchStub()” method in “OOG680_m5/bridges/source/remote/static/stub.cxx” file of urp bridge library for logging the server side messages. With above mention interception we are able to successfully log both method1() and method2() calls from client as well as server side. Issue we are facing: We also needed to log a unique identifier for each method calls on client as well as server side. We tried using uno object-id and uno thread-id as an identifier. However the uno object-id and uno thread-id for both “method1()” and “method2()” are same when these methods are called on the same interface reference. Hence we are not able to uniquely identify the methods called using the same interface reference. We tried generating unique id for each method calls by appending a sequence count value to uno object id on client side as well as server side. However we observed that, the unique ids those gets logged on client side and server side for the same method call are different. As “queryInterface()” method being additionally logged only on client side and it makes the sequence counte on client and server side out of sync…. Does the current implementation of uno urp maintain unique identifier for each method calls? If no then, could you please share your ideas on, How to maintain unique id for each method calls processed through uno urp bridge and log the same on client as well as server side? Thanks, Sudeep K --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
