It seems that your program wants to look-up some object from jndi within the path "jms". You may look in JBoss JNDI-tree where your objects are bound. Maybe it is "queueA". I would try to use
String destinationName = "/queue/queueA";
and
<queue name="testQueue">
<entry name="/queue/queueA"/>
</queue>
instead of "queue/queueA" to put the queue into the global namespace. For the start with JMS i would try a servlet as producer and a MDB as consumer. I think that would be easier.