Did I mention this yet?
There is a REST client for sending bus messages. Single jar, only two dependencies (jboss
logging, apache HTTP client). To send a bus message (in this case, to the alerts topic):
new RestClient(new
URL("http://localhost:8080")).postTopicMessage("HawkularAlertData",
yourJsonPayload, null);
That "null" can be a map of headers if you need to send headers.
The client is here:
https://github.com/hawkular/hawkular-bus/tree/master/hawkular-bus-rest-cl... and the
maven artifact is org.hawkular.bus:hawkular-bus-rest-client - its just a jar.