CNI namespace

Paul Fisher pnfisher@redhat.com
Tue Apr 4 16:27:00 GMT 2000


Erm.  Ignore the previous message.  Fingers slipped.  Sorry. :-)

Cedric Berger <cedric@wireless-networks.com> writes:

> class NativeQueue {
>     native void send(Packet p);
>     native Packet receive();
> }

[...]

> will there be more than one wrapper around Packet?

Each call to "send" or "receive" would result in a different proxy
object being created.  So yes, there could be two different threads
both dealing on the same object, but there would be a different proxy
object for each thread that was off in native-land -- in effect, more
than one wrapper around Packet would exist at the same time, each with
a different JNIEnv.

If this doesn't answer your question, let me know.


More information about the Java mailing list