{"componentChunkName":"component---node-modules-gatsby-theme-medium-to-own-blog-src-templates-blog-post-js","path":"/use-jndi-to-share-objects-between-different-virtual-machines/","result":{"data":{"site":{"siteMetadata":{"siteUrl":"https://javame.netlify.app","githubUrl":"https://github.com/aterreno/blog"}},"mdx":{"fields":{"slug":"/use-jndi-to-share-objects-between-different-virtual-machines/"},"excerpt":"Since I’m implementing a Bluetooth Media Sender and since I’m using the Avetana JSR 185 Implementation (with it on Windows Systems you can…","timeToRead":1,"frontmatter":{"title":"Use JNDI to share objects between different virtual machines","description":"","categories":[],"date":"May 08, 2006","canonical_link":"https://javame.netlify.app//use-jndi-to-share-objects-between-different-virtual-machines-c72e3df3d93d"},"body":"function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsxRuntime classic */\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"title\": \"Use JNDI to share objects between different virtual machines\",\n  \"description\": \"\",\n  \"date\": \"2006-05-08T00:00:00.000Z\",\n  \"categories\": [],\n  \"published\": true,\n  \"canonical_link\": \"https://javame.netlify.app//use-jndi-to-share-objects-between-different-virtual-machines-c72e3df3d93d\",\n  \"redirect_from\": [\"/use-jndi-to-share-objects-between-different-virtual-machines-c72e3df3d93d\"]\n};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, [\"components\"]);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"p\", null, \"Since I\\u2019m implementing a Bluetooth Media Sender and since I\\u2019m using the Avetana JSR 185 Implementation (with it on Windows Systems you can use two dongles, one controlled by Widcomm and one controlled by the Microsoft stack. On startup of the application you need to specify the VM Option -Davetanabt.stack=microsoft to force one application to actually use that stack. It defaults to Widcomm if both are available)\"), mdx(\"p\", null, \"I need to share objects between different 2 virtual machines\\u2026 To have running 2 instances of my BluetoothSender.\", mdx(\"br\", {\n    parentName: \"p\"\n  }), \"\\n\", \"I\\u2019ve found this cool article dated 1999:\", mdx(\"br\", {\n    parentName: \"p\"\n  }), \"\\n\", mdx(\"a\", _extends({\n    parentName: \"p\"\n  }, {\n    \"href\": \"http://www.javaworld.com/javaworld/jw-07-1999/jw-07-cooltools_p.html\",\n    \"target\": \"_blank\",\n    \"rel\": \"nofollow noopener noreferrer\"\n  }), \"Use JNDI to share objects between different virtual machines\"), mdx(\"br\", {\n    parentName: \"p\"\n  }), \"\\n\", \"Use JNDI to share objects between different virtual machines\", mdx(\"br\", {\n    parentName: \"p\"\n  }), \"\\n\", \"Share remote objects between different virtual machines without the need for an object request broker\"), mdx(\"p\", null, \"Summary\", mdx(\"br\", {\n    parentName: \"p\"\n  }), \"\\n\", \"Imagine the following: Process A on machine B puts an object into a Hashtable. Now, a separate process C on a different machine D can access that object from its own local copy of the Hashtable\\u200A\\u2014\\u200Aeven after process A terminates and the virtual machine unloads! Now imagine all this is achieved without the use of RMI, and without involving an ORB, CORBA, EJB, or a database. What\\u2019s the secret? The Java Naming and Directory Interface (JNDI). This month\\u2019s tool is the JNDIHashtable\\u200A\\u2014\\u200Awhich, as its name reveals, uses JNDI to do its thing. (2,600 words)\", mdx(\"br\", {\n    parentName: \"p\"\n  }), \"\\n\", \"Well, It looks working very well. I\\u2019m using the fscontext.jar, which is not included in the JDK distribution, you have to download it \", mdx(\"a\", _extends({\n    parentName: \"p\"\n  }, {\n    \"href\": \"http://java.sun.com/products/jndi/downloads/index.html\",\n    \"target\": \"_blank\",\n    \"rel\": \"nofollow noopener noreferrer\"\n  }), \"here\"), \". I\\u2019ve still to try the performance on the linux box\\u2026\", mdx(\"br\", {\n    parentName: \"p\"\n  }), \"\\n\", \"I\\u2019ve found also a great article about this stuff wrote by a former collegue of mine\\xA0:-) Fabrizio Giudici, it\\u2019s in italian, on the\\xC2 \", mdx(\"a\", _extends({\n    parentName: \"p\"\n  }, {\n    \"href\": \"http://www.mokabyte.it/2002/01/jndi_1.htm\",\n    \"target\": \"_blank\",\n    \"rel\": \"nofollow noopener noreferrer\"\n  }), \"mokabyte\"), \" website.\"));\n}\n;\nMDXContent.isMDXComponent = true;"},"allWebMentionEntry":{"nodes":[]}},"pageContext":{"id":"cbd99ddc-a9fe-5824-a869-39f646ad9c8a","previous":{"id":"9275ad14-99a8-57b8-b042-1bfb06d295ac","fields":{"slug":"/hello-world!/","published":true},"frontmatter":{"redirect_from":["/hello-world-4d367bd8396"],"redirect_to":null,"title":"Hello world!"}},"next":{"id":"8168fc03-57b8-592c-a08c-3c31c2c84e3a","fields":{"slug":"/this-mad-(but-great!)-austrians/","published":true},"frontmatter":{"redirect_from":["/this-mad-but-great-austrians-585c215ec1b1"],"redirect_to":null,"title":"This mad (but great!) austrians"}},"permalink":"https://javame.netlify.app/use-jndi-to-share-objects-between-different-virtual-machines/","themeOptions":{"plugins":[],"config":{"title":"Antonio Terreno","description":"Antonio Terreno's blog archive","shortBio":"","bio":"Principal Consultant at Equal Experts","author":"Antonio Terreno","githubUrl":"https://github.com/aterreno/blog","siteUrl":"https://javame.netlify.app/","social":{"twitter":"javame","medium":"","facebook":"","github":"aterreno","linkedin":"antonioterreno","instagram":"tritonitri"},"goatCounterCode":null}}}},"staticQueryHashes":["4131332129","645483741"]}