log.error("JmsTransport.onMessage(): received a non BytesMessage (" + message + "), discarding");
System.err.println("JmsTransport.onMessage(): received a non BytesMessage (" + message + "), discarding");
    public void onMessage(Message message) {        Object sender=null;        if(message == null || !(message instanceof BytesMessage)) {            log.error("JmsTransport.onMessage(): received a non BytesMessage (" + message + "), discarding");            return;        }        BytesMessage msg=(BytesMessage)message;        try {          //  todo: read the sender            int len=msg.readInt();            byte[] payload=new byte[len];            msg.readBytes(payload, len);            if(receiver != null)                receiver.receive(sender, payload);        }        catch(JMSException e) {            e.printStackTrace();        }    }