This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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?