[omniORB] omniORBpy: Nesting Synchronous and Asynchronous Calls?

Randy randyw@amc.com
Wed, 02 Feb 2000 18:32:30 -0800


--=====================_1456530760==_
Content-Type: text/plain; charset="us-ascii"

Does the current version of omniORBpy support nesting an asynchronous call inside a synchronous call?

I've recently downloaded the binary Windows version (2.8.0) of omniORB, and also downloaded and built omniORBpy (omniORBpy-20000126.tar.gz).  When I build and run the following files with python 1.5.2 on WinNT 4.0 sp4, the results are not what I would expect.

The client does a synchronous call to the server, which should then send an asynchronous call back to the client.

 From looking at omniORB debug output, it appears that when the server receives the synchronous call, it does an (apparently) synchronous _is_a() call back to the client.  The client, which is still waiting for the initial synchronous call to return, ignores the _is_a() call, and eventually times out.

I've attached a .zip archive with the simple files I used to observe this behavior, and pasted in the .idl file below.  Perhaps there is an obvious mistake that someone more experienced with CORBA than I can point out, although I have been doing similar call sequences with Xerox's ILU ORB without running into this problem.

Let me know if more information on the problem is needed.

Thanks,

Randy Wiser
--------------------
// File CallBackDef.idl
// Build stubs from this file before running (attached) omni*.py files:
//   omniidl -bpython CallBackDef.idl
module CallBackDef{
   interface callObj{
     oneway void callBack(in unsigned short obj); // any
   };
   interface registerObj {
     void registerCallBack(in callObj cb);
   };
};
// end file CallBackDef.idl

--=====================_1456530760==_
Content-Type: application/x-zip-compressed; name="omniCallBackTest.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="omniCallBackTest.zip"

UEsDBBQAAAAIAEWNQigcs+W9xQAAAFUBAAAUAAAAdGVzdC9DYWxsQmFja0RlZi5pZGxlkM1uwjAQ
hO9IvMMcS6WSO7lB1SvPYMebZMFZI/+0iqq+ezcGJBAHS/aM59uxmwZf7AkH4/3edOdP6rfs/HrV
NNgX9g4pF5vQxzAhj6y75bqlPkRCLCIsA8Ik/L69zNVMu5pGVZWFD3uZ8xjkdcgUXHke/rteASyZ
Ym86QqfO0Z6qqkChHzPjO7CrzpJ5Y0GRxIOQdh1DzAj2tGmhFYzMS/CvfYZGGjjpQcG4kS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