Re: Status of Java XPCOM?

Javier Pedemonte <[email protected]>
Newsgroups gmane.comp.mozilla.devel.java
Message-ID <_eKdnZ6gy-pdFy_ZnZ2dnUVZ_vednZ2d__11345.1098710813$1152551768$gmane$org@mozilla.org>
Alex Milowski wrote:
> * How many JVM instances do you get if you have two different Java XPCOM
>   components?

Only one JVM is instantiated, no matter how many Java XPCOM components.

> * How does the JVM instance relate to the one used by Javascript?
>   For example, if you script an XPCOM component with javascript and then
>   pass a Java object instantiated in Javascript, are they from the same
>   JVM?

I don't understand the question.  Do you mean that you have a Java 
object instantiated in Javascript using LiveConnect?

This is all meant to work through XPCOM interface abstractions. 
Javascript can work with an interface;  it doesn't matter if it that 
interface is implemented in Javascript, C++, or Java.


javier
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.