QueueMessenger messenger = new QueueMessenger();
messenger.sendMessage(queue);
messenger.recieveMessage(queue);
messenger.closeSession();
Topic topic = new Topic("Topic");
TopicMessager topicMess = new TopicMessager();
topicMess.sendMessage(topic);
topicMess.recieveMessage(topic);
topicMess.closeSession();