Unable To Access AQ JMS Queue Owned By Other Schema
(Doc ID 2878652.1)
Last updated on SEPTEMBER 24, 2023
Applies to:
Oracle SOA Suite - Version 12.2.1.4.0 and laterInformation in this document applies to any platform.
Goal
Unable to Access AQ JMS Queue owned by other Schema
Have 2 Schemas, 1) QUEUE1 - where all the AQ QUEUES are defined and 2) QUEUE2 which we would like to expose to clients
Have setup 2 Foreign Servers with in the JMS Module with Destinations and Connection Factories to access the AQ Queues via JMS, 1) ForeignServer_AQ1 - To Access the queues internally within Weblogic and 2) ForeignServer_AQ2 - To Allow access JMS Client. Using a Java JMS Client we are able to connect and post messages to the Queue. This works well as long as it is pointed to QUEUE1 schema where all the queues are defined.
Created another Foreign Server ForeignServer_AQ2_Test with Destination and Connection Factory which points to QUEUE2 schema- Also have followed the instructions of Doc ID 133574.1 to grant Enqueue /Dequeue privileges.
The Java JMS Client fails with the following error when connecting with QUEUE2 schema
Exception in thread "main" javax.naming.NamingException: Cannot resolve name:Queues/XXXXXXXXXXX [Root exception is oracle.jms.AQjmsException: JMS-190: Queue XXXXXXXXXXXnot found]
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:309)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:555)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:313)
at weblogic.jndi.internal.ServerNamingNode_12214_WLStub.lookup(Unknown Source)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:449)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:435)
at javax.naming.InitialContext.lookup(InitialContext.java:417)
at QueueSend.init(QueueSend.java:58)
at QueueSend.main(QueueSend.java:108)
Caused by: oracle.jms.AQjmsException: JMS-190: Queue XXXXXXXXXXXXX not found
at weblogic.utils.StackTraceDisabled.unknownMethod()
Caused by: oracle.jms.AQjmsException: JMS-190: Queue XXXXXXXXXXXXX
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 |
References |