File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Keep native object alive

 
Laojar Chuger
Ranch Hand
Posts: 111
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic