parse through the JMS queues


I am looking for a utility which could help parsing messages in JMS queue. The requirement it, many producers will be sending documents to JMS Provider. The document structure is same but there is one field inside the message string that will be different(say city TX,CL etc. We want a different document lists which contains data specific to city( say Customers_TX document list and Customers_CL document list without using database).

I think, it can be done it by storing duable subscriptions in cache/hashtable/store and then parsing it.

Is there any utility that can help us query/parse the queues? And get city specific data?