{"id":5146,"date":"2014-03-30T19:12:56","date_gmt":"2014-03-30T19:12:56","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/sharing-objects-across-java-processes-collection-of-common-programming-errors\/"},"modified":"2014-03-30T19:12:56","modified_gmt":"2014-03-30T19:12:56","slug":"sharing-objects-across-java-processes-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/sharing-objects-across-java-processes-collection-of-common-programming-errors\/","title":{"rendered":"Sharing objects across Java processes-Collection of common programming errors"},"content":{"rendered":"<p>You can expose a service to allow access to the data from the object. It&#8217;s comparatively simple to set up inter-process communication using RMI. There&#8217;s going to be an IPC overhead so this will not be as performant as local access, fine-grained access will get expensive, but if you&#8217;re getting summary or other agregated data then this could be a decent model.<\/p>\n<p>You don&#8217;t say why these are separate processes. Do you have any opportunity to load the code of you child process directly into the parent? Dynamic loading and unloading is possible.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can expose a service to allow access to the data from the object. It&#8217;s comparatively simple to set up inter-process communication using RMI. There&#8217;s going to be an IPC overhead so this will not be as performant as local access, fine-grained access will get expensive, but if you&#8217;re getting summary or other agregated data [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5146","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5146"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5146\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}