getApplicationAttr()

The j2eeLib.getApplicationAttr() system function uses a specified key to retrieve a value from application scope storage.

If a value is not found with the specified key, the function returns a null value. If the retrieved value is the wrong type, EGL throws a J2EESessionRequestAccessException.

You can place a value in application scope storage by using the j2eeLib.setApplicationAttr() system function. The value placed in the servlet's application scope storage is available until the application terminates or you clear the value manually using j2eeLib.clearApplicationAttr().

  j2eeLib.getApplicationAttr(
    key STRING in)
  returns (value ANY)
key
Any value that is assignment compatible with the STRING type. See Assignment compatibility in EGL.
value
A variable, record, or array.

Feedback