Issue 3769: Example of ORBInitializer usage needed (interceptors-rtf) Source: International Business Machines (Mr. Phil Adams, pcadams(at)us.ibm.com) Nature: Uncategorized Issue Severity: Summary: I have a general question which pertains to the recommended approach that a service writer would use to derive various interfaces from the PI-defined interfaces (e.g. ORBInitializer, IORInterceptor, etc.). I'm primarily interested in the C++ mapping since I'm trying to implement PI in a C++ ORB. As a means of providing the answer, would it be possible for someone to post an example of how a service writer would implement an ORBInitializer in order to register a request interceptor? My main curiousity would be how the user would define his own ORBInitializer-derived interface (would it be in IDL or straight C++?), how his "implementation" class would be declared/defined, etc. I don't see any examples of this in the spec (I know, the spec should not be bogged down with such details :-) ), but if we're going to provide "portable" interceptors we need to make sure that the user's code can be "portable", right? Anyway, I would appreciate it if someone could provide an example which outlined the various classes that would be involved (some of the classes will be the result of emitting the PI idl, and other classes will belong to the user). Resolution: Revised Text: Actions taken: July 27, 2000: received issue Discussion: End of Annotations:===== From: phil_adams@us.ibm.com Received: from southrelay02.raleigh.ibm.com (southrelay02.raleigh.ibm.com [9.37.3.209]) by e21.nc.us.ibm.com (8.9.3/8.9.3) with ESMTP id SAA56578 for ; Thu, 27 Jul 2000 18:26:55 -0500 Received: from d54mta04.raleigh.ibm.com (d54mta04.raleigh.ibm.com [9.67.228.36]) by southrelay02.raleigh.ibm.com (8.8.8m3/NCO v4.92) with SMTP id SAA23298 for ; Thu, 27 Jul 2000 18:37:40 -0400 Received: by d54mta04.raleigh.ibm.com(Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) id 85256929.007C4B0B ; Thu, 27 Jul 2000 18:37:36 -0400 X-Lotus-FromDomain: IBMUS To: interceptors-ftf@omg.org Message-ID: <85256929.007C4854.00@d54mta04.raleigh.ibm.com> Date: Thu, 27 Jul 2000 17:37:28 -0500 Subject: Example of ORBInitializer usage needed Mime-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset=us-ascii X-UIDL: #Ua!!0P~!!,!Le9:-2!! I have a general question which pertains to the recommended approach that a service writer would use to derive various interfaces from the PI-defined interfaces (e.g. ORBInitializer, IORInterceptor, etc.). I'm primarily interested in the C++ mapping since I'm trying to implement PI in a C++ ORB. As a means of providing the answer, would it be possible for someone to post an example of how a service writer would implement an ORBInitializer in order to register a request interceptor? My main curiousity would be how the user would define his own ORBInitializer-derived interface (would it be in IDL or straight C++?), how his "implementation" class would be declared/defined, etc. I don't see any examples of this in the spec (I know, the spec should not be bogged down with such details :-) ), but if we're going to provide "portable" interceptors we need to make sure that the user's code can be "portable", right? Anyway, I would appreciate it if someone could provide an example which outlined the various classes that would be involved (some of the classes will be the result of emitting the PI idl, and other classes will belong to the user). Thanks Phil Adams WebSphere Enterprise Edition Component Broker Development IBM Austin, TX phil_adams@us.ibm.com (512) 838-6702 (tie 678)