props.put("java.naming.factory.initial","fr.dyade.aaa.jndi2.haclient.HANamingContextFactory");
props.put("java.naming.provider.url","hascn://localhost:16400,localhost:16410");
javax.naming.Context jndiCtx = new javax.naming.InitialContext(props);
javax.jms.TopicConnectionFactory tcf = (javax.jms.TopicConnectionFactory) jndiCtx.lookup("tcf");
Topic topic = (Topic) jndiCtx.lookup("topic");
jndiCtx.close();
Connection cnx = tcf.createConnection("anonymous", "anonymous");
Session sess = cnx.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageConsumer sub = sess.createConsumer(topic);