BBjAdminEnvironment::unpinServer

Description

In BBj 7.0 and higher, this BBjAdminEnvironment method replaces deprecated BBjAdminEnvironment::unpinAllPrograms. This method unpins programs and resources pinned in the server-wide cache; this does not affect programs or resources pinned with session pinning.

Syntax

Return Value

Method

void

unpinServer()

Parameters

None.

Return Value

None.

Remarks

This method will not remove programs or resources from the cache; it only invalidates the timestamps in the cache. The next time a BBx program references a program or resource, BBjServices ensures that the program or resource in cache has the same timestamp as the source file on disk.

Example

INPUT "Enterprise Manager Admin Login: ", user$
INPUT "Password: ",'EE', passwd$, 'BE'

rem ' Modify files to be reloaded.
rem ' ...
admin! = BBjAPI().getAdmin(user$, passwd$)
admin!.getEnvironment().unpinServer()

rem ' BBjServices will now check the modified date on files before
rem ' loading again.

See Also

BBjAPI

BBjAdminEnvironment

BBjConfig::unpinSession

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.