Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display contents of Oracle AQ SYS.AQ$_JMS_TEXT_MESSAGE

I have an application that uses JMS op top of Oracle advanced queuing. I would like to do a query on the queue table that shows the content of the message (which in my case is XML). So when I do a 'select user_data from [queue_table]' I get 'AQ SYS.AQ$_JMS_TEXT_MESSAGE' as a response.

Is there a function so that the contents of this message can be shown? Something like 'select FUNCTION(user_data) from [queue_table]' or something?

I googled, scanned numerous Oracle articles about queuing, but I cannot find this thing. I suspect there is a simple way to do this, but I cannot find it.

like image 784
Bruno Ranschaert Avatar asked Jun 19 '09 21:06

Bruno Ranschaert


People also ask

What is Oracle AQ used for?

Oracle Advanced Queuing (AQ) provides enterprise message functionality across many industries and is widely used within the database itself.

Is Oracle AQ deprecated?

Oracle AQ (JMS) (Deprecated)


2 Answers

I struggled with this one as well. I've written an answer here: http://rwijk.blogspot.com/2009/02/whats-in-my-jms-queue.html .

Regards, Rob.

like image 126
Rob van Wijk Avatar answered Sep 25 '22 15:09

Rob van Wijk


So I suppose it should be:

select queue.user_data.text_vc from [queue_table] queue
like image 42
Bruno Ranschaert Avatar answered Sep 23 '22 15:09

Bruno Ranschaert