final String password) {
try {
final Context ctx = new InitialContext();
TopicConnectionFactory topicConnectionFactory;
topicConnectionFactory = (TopicConnectionFactory) lookup(ctx, tcfBindingName);
final TopicConnection topicConnection = topicConnectionFactory.createTopicConnection(username, password);
topicConnection.start();
final TopicSession topicSession = topicConnection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
final Topic topic = (Topic) ctx.lookup(topicBindingName);
final TopicSubscriber topicSubscriber = topicSession.createSubscriber(topic);
topicSubscriber.setMessageListener(this);