Interop with tlor an otp erlang node.
- JDK1.6+
- gradle 2.1+
2 ways to use it: one via CLI, another just as general java library. As use as java lib, the way is your favor, so I don't say anymore.
java -jar j2otp-<version>.jar \
--nodes=tlor@abc:tlor@def \
--cookie=abc \
--user=newspub@abc.im \
--password=Welcome \
--ins=publish \
--args="/tmp/news:XxX:YyY"
java -jar j2otp-<version>.jar --conf=<your-json-file>
the json configurations like the following:
{
"_nodes": [
"tlor@abc",
"tlor@def"
],
"_cookie": "abc",
"_client": "j2otp@abc",
"_retry": 3,
"_timeout": 500,
"_user": "newspub@abc.im",
"_password": "Welcome",
"_ins": "publish",
"_arguments": [
"/tmp/news",
"XxX",
"YyY"
]
}