JMS-190 when trying to access queue owned by other schema (Doc ID 133574.1)

Last updated on SEPTEMBER 03, 2010

Applies to:

Oracle Server - Enterprise Edition
Information in this document applies to any platform.

Symptoms

You are working with Oracle JMS (Java Messaging service) API and getting an error
"oracle.AQ.AQException: JMS-190: Queue not found".

For example you are getting the above error when connected to Oracle database as USER1 and trying to access queue QUEUE2 owned by another user USER2 as shown below:

AQQueue queue = aq_sess.getQueue("USER2","QUEUE2");

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms