[omniORB] omniORBpy + wxPython; omniORBpy + Twisted

charles bartlett csbartlett at comcast.net
Fri Dec 28 08:24:26 GMT 2007


Stephen,

Thanks for your instructive response.

As you "use omniORB and wxPython (together) extensively" and have
provided an outline of how to use them together, I will code an example
and ask more specific questions as they arise later. The exercise will
be instructive.

It would be better to have a pointer to an example already constructed.
If that is not readily available in omniORB documentation, then perhaps
it should be. (I am not asking you to construct such an example!) By
comparison, the wxPython demo program is very good because it
immediately shows, with little effort, the various capabilities of
wxPython and basically how to code them.


Thanks to the omniORB developer(s) for reducing the barrier to using
CORBA to a learning curve and for the pointer to its "simple
explanation".

On Fri, 2007-12-28 at 00:26 -0800, Stephen Hansen wrote:
> 
>         I am looking for something similar for omniORBpy, although it
>         could run
>         in a thread other than the GUI event loop. 
>         
>         Alternatively, please provide a pointer to how to interface
>         omniORBpy to
>         Twisted, i.e. send data from a CORBA client to the omniORBpy
>         to the
>         Twisted framework to a Twisted server faithfully.
> 
> I'm not sure what you're asking, exactly.
> 
> 
> You don't have to do anything special to use omniORBpy with anything.
> You don't actually have to ever run " orb.run()" and enter an event
> loop to use it; all you have to do is register servants with a POA,
> and use poa._get_the_POAManager().activate(). Unlike twisted, there's
> no separate event loop to maintain and integrate at all.
> 
> 
> omniORB automatically runs in any number of threads seamlessly with no
> effort required from you. It handles connections, spawns threads, and
> does everything itself internally.
> 
> 
> The only thing you have to worry about is having code instigated from
> omniORB interacting with the GUI. In this case, you use "wx.CallAfter"
> to control the GUI and send changes to it. 
> 
> 
> So if you get a chunk of data in a CORBA object and want it to trigger
> a change in your GUI, you "wx.CallAfter(self.control,argument)"
> instead of " self.control(argument)" and the GUI will process it.
> 
> 
> I can give more specific details, as we use omniORB and wxPython
> extensively ... but need more specific questions.
> 
> 
> --Stephen




More information about the omniORB-list mailing list