Example usage for javax.jms BytesMessage writeBoolean

List of usage examples for javax.jms BytesMessage writeBoolean

Introduction

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

Prototype


void writeBoolean(boolean value) throws JMSException;

Source Link

Document

Writes a boolean to the bytes message stream as a 1-byte value.

Usage

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

public void toMessage(BytesMessage bytesMessage) throws JMSException {
    super.toMessage(bytesMessage);
    bytesMessage.writeUTF(appContextAction);
    bytesMessage.writeUTF(clientID);// w  w w.  j a v  a 2  s . co m
    bytesMessage.writeInt(destinationType);
    bytesMessage.writeUTF(destination);
    bytesMessage.writeUTF(destinationConfigName);
    bytesMessage.writeUTF(encryptionAlgorithm);
    bytesMessage.writeUTF(encryptionKey);
    bytesMessage.writeUTF(initializationVector);
    bytesMessage.writeBoolean(isMessageFilterSet);
    bytesMessage.writeUTF(messageFilterConfigName);
    if (messageFilters == null) {
        bytesMessage.writeInt(-1);
    } else {
        bytesMessage.writeInt(messageFilters.size());
        for (Object configKey : messageFilters.keySet()) {
            bytesMessage.writeUTF((String) configKey);
            bytesMessage.writeUTF((String) messageFilters.get(configKey));
        }
    }
    bytesMessage.writeUTF(password);
    bytesMessage.writeUTF(user);
    bytesMessage.writeUTF(proxyPassword);
    bytesMessage.writeUTF(proxyURL);
    bytesMessage.writeUTF(proxyUser);
    bytesMessage.writeUTF(securityManager);
}