use of com.swiftmq.jms.MessageImpl in project swiftmq-client by iitsoftware.
the class FileDeleteReply method toMessage.
public Message toMessage() throws JMSException {
Message message = new MessageImpl();
message.setIntProperty(ProtocolFactory.DUMPID_PROP, ProtocolFactory.FILEDELETE_REP);
return fillMessage(message);
}
use of com.swiftmq.jms.MessageImpl in project swiftmq-client by iitsoftware.
the class FileConsumeReply method toMessage.
public Message toMessage() throws JMSException {
Message message = new MessageImpl();
message.setIntProperty(ProtocolFactory.DUMPID_PROP, ProtocolFactory.FILECONSUME_REP);
message.setStringProperty(FILENAME_PROP, filename);
message.setIntProperty(CHUNKLENGTH_PROP, chunkLength);
message.setLongProperty(SIZE_PROP, size);
return fillMessage(message);
}
use of com.swiftmq.jms.MessageImpl in project swiftmq-client by iitsoftware.
the class FilePublishReply method toMessage.
public Message toMessage() throws JMSException {
Message message = new MessageImpl();
message.setIntProperty(ProtocolFactory.DUMPID_PROP, ProtocolFactory.FILEPUBLISH_REP);
message.setIntProperty(CHUNKLENGTH_PROP, chunkLength);
return fillMessage(message);
}
use of com.swiftmq.jms.MessageImpl in project swiftmq-client by iitsoftware.
the class ProtocolReply method toMessage.
public Message toMessage() throws JMSException {
Message message = new MessageImpl();
message.setIntProperty(ProtocolFactory.DUMPID_PROP, ProtocolFactory.PROTOCOL_REP);
message.setStringProperty(QUEUENAME_PROP, queueName);
return fillMessage(message);
}
use of com.swiftmq.jms.MessageImpl in project swiftmq-ce by iitsoftware.
the class SourceMessageProcessor method copyMessage.
private MessageImpl copyMessage(MessageImpl msg) throws Exception {
dbos.rewind();
msg.writeContent(dbos);
dbis.reset();
dbis.setBuffer(dbos.getBuffer(), 0, dbos.getCount());
MessageImpl msgCopy = MessageImpl.createInstance(dbis.readInt());
msgCopy.readContent(dbis);
return msgCopy;
}
Aggregations