Product Information > JADE Error Messages and System Messages > 31700 through 31899 - Messaging Framework Errors > 31740 - Queue is private - access refused

31740   Queue is private - access refused

Cause

This error occurs if you try to open a queue with the Access=Private option and the queue has already been opened by another process. A queue that is opened with this option can only be accessed by the process that opened it.

In the following example, the openQueue method of the JadeMessagingFactory class is used to open a queue and the queue has already been opened by another process.

vars
    factory : JadeMessagingFactory;
begin
    create factory transient;
    myQueue := factory.openQueue("JadeMQ://localnode/TestQ",                                                         "Access=Private");
epilog
    delete factory;
end;

Action

Correct your code.