// should be retreived via jndi
Topic topic = new XBDestination("jms-test", null, false);
TopicConnection connection = factory.createTopicConnection();
connection.start();
TopicSession session = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
TopicSubscriber subscriber = session.createSubscriber(topic);
subscriber.setMessageListener(this);
TopicPublisher publisher = session.createPublisher(topic);