[omniORB] Context Arguments
Kevin Wooten
kwooten@itracs.com
Mon, 25 Jun 2001 14:17:25 -0700
I recently tried to create a method with a Context clause, and the
method was mapped to C++ in the following fashion:
interface iServer
{
void create_object( in object_id id ) context(
"ServerInst" );
}
class _objref_iServer {
void login( object_id id, CORBA::Context_ptr ctx );
};
>From everything I have read in the CORBA docs, I thought context
arguments were supposed to be retrieved from the default context of the
ORB based on the strings literals provided in the context statement, and
passed "implicitly" to the method begin called. Can someone explain
where I am wrong?
If you have not figured it out already, I am trying to pass a user
specific iServer object to the methods, since the iServer object carries
all the security information. I do not want to make the API require
passing it on the command line, since it will be needed for almost every
method. I thought that a Context_ptr was only added to the servant
method, which would be fine.
My other option, since I am using omniORB 4.0, is to use interceptors,
unfortunately I have no idea how to implement them? (HINT)
Thanks,
Kevin Wooten
iTRACS Corporation
email: kwooten@itracs.com
phone: 480-557-8000 ext. 132
=20