Dmitri Hrapof wrote:
Thank you for joining the discussion!

Stephan Bergmann <stephan.bergmann <at> sun.com> writes:
Dmitri Hrapof wrote:
Is it possible from, say, Calc  to call methods on objects in remote
Python/C++/Java/Common Lisp process?

And what about this question?

There are two answers to that question: First, UNO is remote transparent, so you can call methods on remote objects just as easily as on local ones, provided there are appropriate implementations of UNO bridges (which is true everywhere in UNO, unrelated to, say, Calc). However, second, some code has to establish the remote connections in the first place. A typical scenario here is to start soffice in listening mode and connect to it from another process. Then, if, say, Calc has some API where you can register an object reference (e.g., some sort of listener), you can register a remote object reference that eventually will be called.

If anything is unclear, feel free to ask here.

Could you please provide sequence of request-reply messages for this example:

ctx = resolver.resolve(
"uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext" )
smgr = ctx.ServiceManager
desktop = smgr.createInstanceWithContext( "com.sun.star.frame.Desktop",ctx)

with some comments?

You can generate human-readable logs yourself: Re-build bridges/source/remote/urp with dmake debug=x and set the environment variables PROT_REMOTE_ACTIVATE (see bridges/source/remote/urp/urp_log.cxx:1.5 l. 85 etc.) and PROT_REMOTE (see bridges/source/remote/urp/urp_environment.cxx:1.20 l. 454). Sorry, I do not have more time at the moment to produce any examples.

-Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to