Calling a Java Method from a native call back function

I have a call back function in my C++ project. This function should fire a Java event to notify something. I can save a global reference to the object which must receive the notification, but I have no "thread environment" to call the notification method. How can I get a valid "thread environment" to call this method? Should I create a new Java thread?

Thaks in advance.

[400 byte] By [jlrando] at [2007-9-26 16:28:50]
# 1
Look at http://www.javaworld.com/javaworld/jw-10-1999/jw-10-jni.html. This is an example for a Win32 callback function.Regards,Dimitri
Demjan at 2007-7-2 20:06:51 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
Thank you very much Dimitri.
jlrando at 2007-7-2 20:06:51 > top of Java-index,Java HotSpot Virtual Machine,Specifications...