generateAccessPassword
generateAccessPassword(): String;
The generateAccessPassword method of the JadeMessagingFactory class returns a unique password consisting of 32 random alphanumeric characters (never repeated within a single JADE node).
The password is used as part of the options parameter when a JadeMQ queue is created by using the openQueue method, as shown in the following example.
vars factory : JadeMessagingFactory; password : String; begin create factory transient; password := factory.generateAccessPassword; myQueue := factory.openQueue("JadeMQ://localnode/TestQ", "Access=Protected; AccessPassword=password; Usage=All"); epilog delete factory; end;
Another process must use the same password to open the queue.