Example usage for javax.jms BytesMessage readBoolean

List of usage examples for javax.jms BytesMessage readBoolean

Introduction

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

Prototype


boolean readBoolean() throws JMSException;

Source Link

Document

Reads a boolean from the bytes message stream.

Usage

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

public void fromMessage(BytesMessage bytesMessage) throws JMSException {
    super.fromMessage(bytesMessage);
    appContextAction = bytesMessage.readUTF();
    clientID = bytesMessage.readUTF();/*from  www . j  ava 2  s . c  o  m*/
    destinationType = bytesMessage.readInt();
    destination = bytesMessage.readUTF();
    destinationConfigName = bytesMessage.readUTF();
    encryptionAlgorithm = bytesMessage.readUTF();
    encryptionKey = bytesMessage.readUTF();
    initializationVector = bytesMessage.readUTF();
    isMessageFilterSet = bytesMessage.readBoolean();
    messageFilterConfigName = bytesMessage.readUTF();

    int numConfigs = bytesMessage.readInt();
    if (numConfigs > 0) {
        messageFilters = new HashMap<>();
        for (int i = 0; i < numConfigs; i++) {
            String key = bytesMessage.readUTF();
            String config = bytesMessage.readUTF();
            messageFilters.put(key, config);
        }
    }
    password = bytesMessage.readUTF();
    user = bytesMessage.readUTF();
    proxyPassword = bytesMessage.readUTF();
    proxyURL = bytesMessage.readUTF();
    proxyUser = bytesMessage.readUTF();
    securityManager = bytesMessage.readUTF();
}