This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes Keep native object alive Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "Keep native object alive" Watch "Keep native object alive" New topic
Author

Keep native object alive

Laojar Chuger
Ranch Hand

Joined: Dec 20, 2000
Posts: 111
I am working a piece of application to do user authentication in which I have to call a native DCE client as no java interface available. My current implementation is to encapsulate all the dce logic inside a C++ object and make this object do the work from jni.
Since this is a typical mission critical process for the application, performance is of critial importance. I am looking for a method to make the C++ object alive. Right now every time a user login, this object is created and deleted inside the jni call. This object creation and destruction is too costing.
Please let me know if you have an idea to make this native object alive.
Thanks.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Keep native object alive
 
Similar Threads
A JNI question
A JNI question
JNI question - c++ objects (global?) and returning arrays
jar to native dll
Invoke Java library from C/C++