{"id":2262,"date":"2016-07-06T15:08:05","date_gmt":"2016-07-06T13:08:05","guid":{"rendered":"http:\/\/hasselba.ch\/blog\/?p=2262"},"modified":"2016-07-06T15:08:47","modified_gmt":"2016-07-06T13:08:47","slug":"java-napi-enable-disable-recycling","status":"publish","type":"post","link":"https:\/\/hasselba.ch\/blog\/?p=2262","title":{"rendered":"Java NAPI: Enable \/ Disable Recycling of C Handles"},"content":{"rendered":"<h3>Initialize Java NAPI<\/h3>\n<pre><code>com.ibm.domino.napi.c.C.initLibrary( \"\" );<\/code><\/pre>\n<h3>Disable Recycling<\/h3>\n<pre><code>com.ibm.domino.napi.c.BackendBridge.setNoRecycle( session, session, true );<\/code><\/pre>\n<h3>Enable Recycling<\/h3>\n<pre><code>com.ibm.domino.napi.c.BackendBridge.setNoRecycle( session, session, false );<\/code><\/pre>\n<p>To use these methods in an agent, you have to <a href=\"https:\/\/hasselba.ch\/blog\/?p=1345\">import some Jars<\/a> first.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Initialize Java NAPI com.ibm.domino.napi.c.C.initLibrary( &#8222;&#8220; ); Disable Recycling com.ibm.domino.napi.c.BackendBridge.setNoRecycle( session, session, true ); Enable Recycling com.ibm.domino.napi.c.BackendBridge.setNoRecycle( session, session, false ); To use these methods in an agent, you have to import some Jars first.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[89],"tags":[31],"class_list":["post-2262","post","type-post","status-publish","format-standard","hentry","category-java","tag-java"],"_links":{"self":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2262","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2262"}],"version-history":[{"count":3,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2262\/revisions"}],"predecessor-version":[{"id":2265,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2262\/revisions\/2265"}],"wp:attachment":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}