My Oracle Support Banner

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

Last updated on MARCH 08, 2017

Applies to:

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

Goal

You are trying to run the example code 25-1 in the JDBC developer's guide 11.1.0.7 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 oracle.jdbc.aq.AQMessageProperties
Error(403,31): variable DEQUEUE_BUFFERED not found in class oracle.jdbc.aq.AQDequeueOptions
Error(404,29): variable DEQUEUE_IMMEDIATE not found in class oracle.jdbc.aq.AQDequeueOptions



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


Solution

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
Goal
Solution


This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.
My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.