omniORBpy implementation principles
"J?rgen" Weber <[email protected]> Tue, 11 Oct 2005 16:17:52 -0700 (PDT)
| Newsgroups | gmane.comp.corba.omniorb.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, I am playing with the idea of writing an IDL to COBOL mapping for TinyCOBOL. Therefore I am interested how the implementation of omniORBpy is done. Please forgive that I chose to ask here instead of digging deep in its code. I can imagine three ways: Write everything from scratch using only a small C part for socket handling. Ouch. >From the IDL generate a C++ Servant that fills COBOL data structures and delegates to COBOL. This seems the most easy way to me, but it unnecessarily creates temporary C++ stub objects, only to pass them through to COBOL. Somehow hook into omniORB (portable(?) interceptors?) and delegate either the IIOP stream to COBOL (but GIOP parsing in COBOL should be a mess and why reinvent the wheel?) or publish the CDRInputStream to COBOL (and have COBOL call read_short() and friends), i.e. somehow replace the code that feeds the POA. No idea however, how this could be done. Thanks for any input, Jürgen __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com