[omniORB-dev] omniORBpy implementation principles

Jürgen Weber jugewe at yahoo.com.br
Tue Oct 11 17:17:52 BST 2005


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



More information about the omniORB-dev mailing list