* Sends a message to a given jid
*/
public void message(String to, String from, Serializable value)
{
try {
Hessian2Output out = _out;
if (out != null) {
if (log.isLoggable(Level.FINER)) {
log.finer(this + " message " + value
+ " {to:" + to + ", from:" + from + "}");
}
synchronized (out) {
out.startPacket();
out.writeInt(HmtpPacketType.MESSAGE.ordinal());
out.writeString(to);
out.writeString(from);
out.writeObject(value);
out.endPacket();
if (_isAutoFlush)
out.flush();
}
}
} catch (IOException e) {
close();