WebSpeed Detect Broker Mode Programmatically

Posted by Admin on 25-Mar-2010 14:04

I have a need to find out the mode my broker is running in programmatically.

What I am trying to do is implement a security policy which will vary depending on the current mode i.e. Production or Development.

Something like this:

IF BROKER_MODE EQ "Production" THEN

      Implement_Security_Policy = YES.

ELSE

      Implement_Security_Policy = NO.


Thanks in advance.

Jatinder

All Replies

Posted by Matt Baker on 25-Mar-2010 18:40

DEFINE VARIABLE lDevMode                AS LOGICAL    NO-UNDO.

lDevMode = DYNAMIC-FUNCTION("devCheck" IN web-utilities-hdl).

Posted by Admin on 29-Mar-2010 12:23

Yeah, I figure that out after looking in one of the Progress programs. But really appreciated for the answer.

Thanks

This thread is closed