The Interface between RemoteControl and ActiveMQ Message Server is provided by the class MessageServerInterface.
It provides the following methods
MessageServerInterface (String
hostname, String path, String queue)
Creates the MessageServerInterface to interface to the Message Server
running on host "hostname", at a path specified by "path", and
specifying the queue from which this client will read from and write to.
String httpPost (KeyValueList)
A public method to send a message to the Message Server. The XML Message
from Remote Control is encoded as part of the HTTP POST message.
String httpGet ()
A public method to retrieve a message from the Message Server. The HTTP GET
command retrieves the message from the queue as a String. This can then be
converted in to KeyValueList to be sent to the Remote Control.
String getString(KeyValueList)
Convert a KeyValueList to a String. This is a private utility method.
KeyValueList getKVList(String)
Convert a String to a KeyValueList. This is a public utility method.
Zipped source code for the Interface and setup code to test the interface is here (src.zip).