Example usage for javax.jms BytesMessage readLong

List of usage examples for javax.jms BytesMessage readLong

Introduction

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

Prototype


long readLong() throws JMSException;

Source Link

Document

Reads a signed 64-bit integer from the bytes message stream.

Usage

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

public void fromMessage(BytesMessage bytesMessage) throws JMSException {
    super.fromMessage(bytesMessage);
    priority = bytesMessage.readInt();//from  w ww .j av a  2 s.c o  m
    publisherConfigName = bytesMessage.readUTF();
    timeToLive = bytesMessage.readLong();
    applicationContextTransformation = new Transformation();
    applicationContextTransformation.fromMessage(bytesMessage);
}