out.writeInt(consumerID);
out.writeInt(serverId);  out.writeInt(consumerId);
   public void write(DataOutputStream out) throws Exception   {      out.writeInt(consumerID);            out.writeInt(msgs.size());            Iterator iter = msgs.iterator();            while (iter.hasNext())      {         MessageProxy mp = (MessageProxy)iter.next();                  out.writeByte(mp.getMessage().getType());         out.writeInt(mp.getDeliveryCount());         mp.getMessage().write(out);      }         }