* Reads a map message.
*/
private MapMessageImpl readMapMessage(InputStream is)
throws IOException, JMSException
{
MapMessageImpl map = new MapMessageImpl();
if (is == null)
return map;
ObjectInputStream in = new ContextLoaderObjectInputStream(is);
try {
while (true) {
String name = in.readUTF();
Object obj = in.readObject();
map.setObject(name, obj);
}
} catch (EOFException e) {
} catch (Exception e) {
throw new JmsExceptionWrapper(e);
}