简体   繁体   中英

Bulk Dequeue from Oracle Queue using Standalone Java

I want to dequeue the messages from Oracle AQ. Oracle is enqueuing data into table called parser.

Since we're asked not to use JMS or any such feature due to deadline, I need a standalone program which will dequeue messages from this queue.

Can any one provide me the sample code in Java which will dequeue messages? Also, we need to dequeu messages in bulk & not one by one.

I'll appreciate if some one can provide standalone java sample to retrieve bulk dequeued messages.

Thanks!

I want to dequeue the messages from Oracle AQ. Oracle is enqueuing data into table called parser.

I'm confused about queue and table in the same question.

If it's a queue, then write a MessageListener and have it listen to the queue. When messages arrive, it'll receive and process them.

If it's a table, write a task that periodically does a JDBC queue to SELECT all the rows in the table, process, and delete them as a single transaction.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM