Mike
Mike

Reputation: 7924

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!

Upvotes: 1

Views: 959

Answers (1)

duffymo
duffymo

Reputation: 308988

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.

Upvotes: 1

Related Questions