Example usage for javax.jms BytesMessage writeLong

List of usage examples for javax.jms BytesMessage writeLong

Introduction

In this page you can find the example usage for javax.jms BytesMessage writeLong.

Prototype


void writeLong(long value) throws JMSException;

Source Link

Document

Writes a long to the bytes message stream as eight bytes, high byte first.

Usage

From source file:com.fiorano.openesb.application.application.OutputPortInstance.java

public void toMessage(BytesMessage bytesMessage) throws JMSException {
    super.toMessage(bytesMessage);
    bytesMessage.writeInt(priority);//w ww.j av  a 2s  .co  m
    bytesMessage.writeUTF(publisherConfigName);
    bytesMessage.writeLong(timeToLive);
    applicationContextTransformation.toMessage(bytesMessage);
}