My Oracle Support Banner

Non-Persistent Messages Being Enqueued As Persistent When Using AQ JMS (Doc ID 413073.1)

Last updated on OCTOBER 13, 2022

Applies to:

Oracle Containers for J2EE - Version and later
Information in this document applies to any platform.


On DB in Production:

Messages enqueued from java code with deliverymode=NON-Persistent are showing as Persistent.
This does work from pl/sql code, but not from java code.

Enqueuing the message as DeliveryMode.NON_PERSISTENT from the java code should be the same as from pl/sql.
The message should appear as IN-MEMORY in the queue, but it appears as READY.

Steps to reproduce the problem:

1. Create the AQ objects:

    Here we will have the three messages with the MSG_STATE as READY.


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.