651652653654655656657658659660661
oos.flush(); bos.flush(); pkt.setMessageBody(bos.toByteArray()); //hash.putAll(p); pkt.setProperties(hash); cxn.sendControlMessage(pkt); } } } catch (Exception ex) { status = Status.ERROR; msg = "Error notifying consumer " + target +
686687688689690691692693694695696
oos.writeObject(p); oos.flush(); bos.flush(); pkt.setMessageBody(bos.toByteArray()); pkt.setProperties(hash); cxn.sendControlMessage(pkt); } } catch (Exception ex) { status = Status.ERROR; msg = "Error notifying consumer " + target + " because " + ex.toString();
378379380381382383384385386387
pkt.setPacketType(PacketType.RESUME_FLOW); hm.put("JMQProducerID", new Long(getProducerUID().longValue())); hm.put("JMQDestinationID", duid.toString()); hm.put("Reason", reason); pkt.setProperties(hm); con.sendControlMessage(pkt); } } }