My Oracle Support Banner

Compilation errors running the example code 25-1 (Doc ID 1273885.1)

Last updated on MARCH 11, 2019

Applies to:

JDBC - Version and later
Information in this document applies to any platform.


You are trying to run the example code 25-1 in the JDBC developer's guide and and you are running into compilation errors:

Oracle� Database JDBC Developer's Guide and Reference,
11g Release 1 (11.1)
Part Number B31224-04
25 Oracle Advanced Queuing
Example 25-1 AQ Asynchronous Event Notification Example

compilation errors:

Error(401,12): variable MESSAGE_BUFFERED not found in interface
Error(403,31): variable DEQUEUE_BUFFERED not found in class
Error(404,29): variable DEQUEUE_IMMEDIATE not found in class

400 if((e.getMessageProperties()).getDeliveryMode()
401 == AQMessageProperties.MESSAGE_BUFFERED)
402 {
403 deqopt.setDeliveryMode(AQDequeueOptions.DEQUEUE_BUFFERED);
404 deqopt.setVisibility(AQDequeueOptions.DEQUEUE_IMMEDIATE);
405 }


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.