177178179180181182183184185186187
BytesMessage src = (BytesMessage) message; final int LEN = 100; byte[] buf = new byte[LEN]; int bytesRead = src.readBytes ( buf ); while ( bytesRead >= 0 ) { m.writeBytes ( buf, 0, bytesRead ); bytesRead = src.readBytes ( buf ); } ret = m; } else {
538539540541542543544545546547548
} case Bytes: { BytesMessage message = session.createBytesMessage(); if (body != null) { byte[] payload = context.getTypeConverter().convertTo(byte[].class, exchange, body); message.writeBytes(payload); } return message; } case Map: { MapMessage message = session.createMapMessage();