<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Verdana size=2>
<DIV><FONT face=Verdana size=2>Hello Duncan,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Verdana size=2>Sorry for re-posting this question. But I
urgently need to know how to map "info_T" object to a CORBA::Request
object.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Verdana size=2>As mentioned in the earlier posting, I need to
use the "Corba::Request" object in the "serverReceiveRequest" Interceptor
as follows.</FONT></DIV>
<DIV> </DIV>
<DIV><EM><FONT face=Verdana size=2>static CORBA::Boolean myFunction(
omni::omniInterceptors::serverReceiveRequest_T::info_T& info
)<BR>{</FONT></EM></DIV>
<DIV><EM><FONT face=Verdana size=2> CORBA::Request
r;</FONT></EM></DIV>
<DIV><EM><FONT face=Verdana size=2> ......</FONT></EM></DIV>
<DIV>
<DIV><EM><FONT face=Verdana size=2> ......</FONT></EM></DIV><EM><FONT
face=Verdana size=2> // Mapping from 'info' to
'r'</FONT></EM></DIV>
<DIV><EM><FONT face=Verdana size=2> ......</FONT></EM></DIV>
<DIV><FONT face=Verdana size=2>
<DIV><EM><FONT face=Verdana
size=2> ......</FONT></EM></DIV></FONT><EM><FONT face=Verdana
size=2> // get the target of the
request <BR> CORBA::Object *obj = r.target ();<BR> int fd
= r.descriptor();</FONT></EM></DIV>
<DIV><EM> addRequest(fd,&r); </EM></DIV>
<DIV><EM><FONT face=Verdana size=2>
<DIV><EM><FONT face=Verdana size=2> .......</FONT></EM></DIV>
.......</FONT></EM></DIV>
<DIV><EM><FONT face=Verdana size=2>}</FONT></EM></DIV>
<DIV>......</DIV>
<DIV>......</DIV>
<DIV><EM>omni::omniInterceptors* interceptors =
omniORB::getInterceptors();<BR>interceptors->serverReceiveRequest.add(
myFunction );</EM></DIV>
<DIV><FONT face=Verdana size=2>......</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Verdana size=2>Please provide some suggestions in handling this
case.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Verdana size=2>Regards,</FONT></DIV>
<DIV><FONT face=Verdana size=2>Ameya.</FONT></DIV>
<DIV> </DIV></FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A href="mailto:virkar@stee.com.sg" title=virkar@stee.com.sg>Ameya Virkar</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
href="mailto:omniorb-list@omniorb-support.com"
title=omniorb-list@omniorb-support.com>omniorb-list@omniorb-support.com</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, August 14, 2003 5:56
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [omniORB]
Interceptor/CORBA::Request </DIV>
<DIV><BR></DIV>
<DIV><FONT face=Verdana size=2>Hello,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Verdana size=2>I am using omniORB4 on WinNT4 /
VC6.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Verdana size=2>I need help in solving this issue:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Verdana size=2>How to get the CORBA::Request from "info_T" in
an Interceptor at the server? </FONT><FONT face=Verdana size=2>I am using the
"serverReceiveRequest" Interceptor. </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Verdana size=2>I need to process (add it to a list) the
CORBA::Request depending on the value returned by
"operation_name()".</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Verdana size=2>Thanks in advance.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Verdana size=2>Regards,</FONT></DIV>
<DIV><FONT face=Verdana size=2>Ameya.</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>omniORB-list mailing
list<BR>omniORB-list@omniorb-support.com<BR>http://www.omniorb-support.com/mailman/listinfo/omniorb-list<BR></BLOCKQUOTE></BODY></HTML>