Sun Java System Message Queue 4.1 Technical Overview

ProcedureTo Use Administered Objects as Destinations

  1. The administrator creates a physical destination on the broker.

  2. The administrator creates a destination administered object and configures it by specifying the name of the physical destination to which it corresponds and its type: queue or topic.

  3. The message producer looks up the destination administered object using a JNDI lookup call.

  4. The message producer sends a message to the destination.

  5. The message consumer looks up the destination administered object where it expects to get messages.

  6. The message consumer gets the message from the destination.

    The process of using connection factory administered objects is similar. The administrator creates and configures a connection factory administered object using administration tools. The client looks up the connection factory object and uses it to create a connection.

    Although the use of administered objects adds a couple of steps to the messaging process, it also adds robustness and portability to messaging applications.