{"_id":"55ed879428d7c33700de00e1","project":"55e94ebde5d0c623003ed868","version":{"_id":"55e94ebee5d0c623003ed86b","project":"55e94ebde5d0c623003ed868","__v":1,"createdAt":"2015-09-04T07:56:46.272Z","releaseDate":"2015-09-04T07:56:46.272Z","categories":["55e94ebee5d0c623003ed86c"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"0.3.0","version":"0.3.0"},"user":"55e94db887e942230032e40d","__v":5,"githubsync":"","category":{"_id":"55e94ebee5d0c623003ed86c","pages":["55e94ebfe5d0c623003ed86e","55ed7fdadf21af2b009e217d","55ed86db2e66b621009941a6","55ed879428d7c33700de00e1","55ed88392e66b621009941a9","55ed885cec4c3e3900b75611","55ed88ba2e66b621009941ab","55ed8caba872a80d00acff5d","55ed8ce82e66b621009941c3","560d5df697a0a32f006e9de9","566ff8f33a32d20d00c45b37","5670195e81801f0d00802e1c"],"version":"55e94ebee5d0c623003ed86b","__v":12,"project":"55e94ebde5d0c623003ed868","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-09-04T07:56:46.830Z","from_sync":false,"order":9999,"slug":"documentation","title":"Documentation"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-09-07T12:48:20.183Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":10,"body":"You may want to run brokers and workers inside other JVMs (this is actually the most frequent setup for Majordodo).\n\nIn order to run embedded brokers and workers you can use the **majordodo-embeeded** project.\n\n\nNote that when running in embedded mode there is a special in-JVM client which implements the same API of the HTTP-based client but talks to the broker without using the network.\n\nEmbedded workers usually will talk to the (single) embedded broker using in-JVM comunication, so unit tests will not use the network at all (embeddable artifacts are the most common way to develop unit tests).\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Maven coordinates\"\n}\n[/block]\nIf you are going to work in Embedded mode you have to put this dependencies on your classpath\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<dependency>\\n    <groupId>majordodo</groupId>\\n    <artifactId>majordodo-embedded</artifactId>\\n    <version>your-majordodo-version</version>\\n</dependency>\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Getting started in embedded mode\"\n}\n[/block]\nIn order to get startedusing the embedded mode see see Majordodo Embedded example\n\nhttps://github.com/majordodo/Majordodo/blob/master/majordodo-embedded/src/test/java/majordodo/embedded/BrokerEmbeddedClientTest.java","excerpt":"","slug":"embedded-mode","type":"basic","title":"Embedded Mode"}
You may want to run brokers and workers inside other JVMs (this is actually the most frequent setup for Majordodo). In order to run embedded brokers and workers you can use the **majordodo-embeeded** project. Note that when running in embedded mode there is a special in-JVM client which implements the same API of the HTTP-based client but talks to the broker without using the network. Embedded workers usually will talk to the (single) embedded broker using in-JVM comunication, so unit tests will not use the network at all (embeddable artifacts are the most common way to develop unit tests). [block:api-header] { "type": "basic", "title": "Maven coordinates" } [/block] If you are going to work in Embedded mode you have to put this dependencies on your classpath [block:code] { "codes": [ { "code": "<dependency>\n <groupId>majordodo</groupId>\n <artifactId>majordodo-embedded</artifactId>\n <version>your-majordodo-version</version>\n</dependency>", "language": "text" } ] } [/block] [block:api-header] { "type": "basic", "title": "Getting started in embedded mode" } [/block] In order to get startedusing the embedded mode see see Majordodo Embedded example https://github.com/majordodo/Majordodo/blob/master/majordodo-embedded/src/test/java/majordodo/embedded/BrokerEmbeddedClientTest.java