I could guess the problem could be in the transaction.
Some visual tools can show the uncommitted messages in UOW too.
Classical JMS code will not show you the uncommitted messages.
Check the configuration of your JBoss regarding XA, or transaction model.