aspose file tools*
The moose likes Distributed Java and the fly likes Keep native object alive Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
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.
 
 
subject: Keep native object alive