writer.println(" id='" + clientID + "'>");
writer.flush();
}
protected Packet readMessage(XMLStreamReader reader) throws XMLStreamException, JMSException {
ActiveMQTextMessage message = new ActiveMQTextMessage();
message.setJMSMessageID(idGenerator.generateId());
QName name = reader.getName();
String to = getAttributeValue("to", reader);
String type = getAttributeValue("type",reader);
if (type != null){
message.setJMSType(type);
}
if (to != null && to.length() > 0) {
message.setJMSDestination(createDestination(type,to));
}
if (this.userName != null && this.userName .length() > 0) {
message.setJMSReplyTo(createDestination("chat",this.userName));
}
while (reader.hasNext()) {
switch (reader.nextTag()) {
case XMLStreamConstants.START_ELEMENT: