When you create a destination, you must also specify its type: MQ_QUEUE_DESTINATION or MQ_TOPIC_DESTINATION. See Chapter 2, Client Programming Model, in Sun Java System Message Queue 4.1 Technical Overviewfor a discussion of these two types of destinations and how to choose the type that suits your needs.