...
No Format |
---|
from("direct:input").to("javaspace:jini://localhost?spaceName=mySpace"); //Client side from("javaspace:jini://localhost?concurrentConsumers=10&spaceName=mySpace").to("pojo:pojo"); //Server side |
In the code there are two test cases showing how to use the a POJO for realizing the master/worker pattern. The idea is to use the POJO for providing the business logic and relying on camel for sending/receiving requests/replies with the proper correlation.
Options
Name | Default Value | Description |
---|---|---|
spaceName | null | This is the JavaSpace name |
verb | take | This is the verb for getting JavaSpace entries, it can be: take or read |
transactional | false | if true, sending and receiving of entries is performed under a transaction |
transactionalTimeout | Long.MAX_VALUE | the transaction timeout |
concurrentConsumers | 1 | the number of concurrent consumer getting entries from the JavaSpace |
templateId | null | if present, this option it's a Spring Bean id to be used as a template for reading/taking entries |
...