from("timer:geotimer")
.process(exchange -> exchange.getIn().setBody(new Foo("bar", "TEXT")))
.to("pubnub:eon-maps-geolocation-input?operation=fire&publishKey=mypubkey&subscribeKey=mysubkey");
from("pubnub:eon-map-geolocation-output?subscribeKey=mysubkey)
// geolocation output will be logged here
.log("${body}");
from("timer:geotimer")
.process(exchange -> exchange.getIn().setBody(new Foo("bar", "TEXT")))
.to("pubnub:eon-maps-geolocation-input?operation=fire&publishKey=mypubkey&subscribeKey=mysubkey");
from("pubnub:eon-map-geolocation-output?subscribeKey=mysubkey)
// geolocation output will be logged here
.log("${body}");
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow