A bit confused by your question and the link you have mentioned. Actually, the TopicConnectionFactory is by default created for you by JBoss. You just have to do a lookup of that in the JNDI tree. Can you elaborate as to what exactly you are trying to do with the TopicConnectionFactory? Is it that you want to send/receive messages from a topic and hence are trying to get hold of the TopicConnectionFactory?