Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: " You can start the broker now assuming your Java installation is correct by running the activemq script"

A block of code is set as follows:

Class MyTransportListener implements TransportListener {
    public void onCommand(Object command) {}
 
    public void onException(IOException error) {
 
    public void transportInterupted() {
        // app logic
    }
 
    public void transportResumed() {
        // app logic
    }
}

MyTransportListener listener = new MyTransportListener();
((ActiveMQConnection) connection).addTransportListener(listener);

When we ...

Get Instant Apache ActiveMQ Messaging Application Development How-to now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.