Marius Mikucionis wrote:
> So I can have plenty of those XPCOM directories with a separate registry?
> It's not very good idea...
>
> How can I determain what component-services are run/registered
> as single copy for several processes (I expect them to be in mozilla.exe or
> netscp6.exe)?
>
> I need my outer application to communicate with Netscape6,
> but all I get is a separate copy of component I'm trying to communicate
> with.
> Is it possible with XPCOM?
>
> Marius
The first thing to understand here is that XPCOM provides a component
framework for an application. It is not MSCOM or CORBA and does not
pretend to be. It's purpose is to allow building an application out of
components. It does not automate marshalling object references across
process or machine boundaries but does provide some of the tools for
you to implement this yourself.
What you can do without too much effort is have multiple threads within
the same process perform the tasks as your separate processes would have
done.
Within the same process you can then share a component through a variety
of means including invoking the component as a service so as to ensure
that you always reference the same instance.
Another avenue to pursue is embedding the browser within your
application so that accessing the DOM and other components should be
straight forward.
Hope that was helpful and didn't sound too stern - it's just that I see
questions similar to these quite often.
Regards,
Rick