|
From: Mark S Waterbury <mark.s.waterbury@xxxxxxxxxxxxx>program?
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Date: 05/10/2017 07:13 AM
Subject: Re: Is there an API to "deactivate" an "active" service
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>
Nathan:
Suppose your NEP is set to use a "Named" ACTGRP(NEP), and with all of
the *SRVPGMs set to ACTGRP(*CALLER) and run in that AG, and then, when
you want to "recycle" your NEP, your application somehow signals the NEP
to "end" and it sets LR=ON and returns to its caller -- this could be a
small CL program that then issues:
RCLACTGRP ACTGRP(NEP)
This will reclaim all of the resources used by the NEP and any *SRVPGMs
that it has activated in that AG during its "lifetime." Then, the CL
program can just call the NEP again, to start up a "new" named AG (with
the same name), if that is what is desired.And I
HTH,
Mark S. Waterbury
> On 5/9/2017 2:39 PM, Nathan Andelin wrote:
Yes, Buck. In regard to performance I was thinking *NEW vs. *CALLER.
surmised,agree that NAMED could address the performance concern. As you
dynamically*CALLER is required because of a design that entails the sharing other
resources between the NEP and the service programs that are
wrote:activated at runtime.
On Tue, May 9, 2017 at 11:59 AM, Buck Calabro <kc2hiz@xxxxxxxxx>
using
On 5/9/2017 12:27 PM, Nathan Andelin wrote:
In the testing I've done so far, the service programs were created
the*caller activation group and alwrinz(*no), which are defaults for
case,create command. The *caller activation group is essential in this
tofor
performance reasons.I assume you're writing of the difference between *NEW and *CALLER.
There is a third option: a named activation group. With respect only
requireperformance, such a design would result in one more activation in the
job, and thus would be slightly slower - once. After the initial
activation, the subsequent sub-procedure invocations would not
inactivation.
With respect only to 'cleaning up' having the service programs in a
named activation group means that the clean up code knows which
activation group to reclaim.
With respect to architecture, *CALLER is intended to share memory,
overrides, and open access paths between programs and sub-procedures
canthat activation group. If your situation is such that a separate
activation group (and thus separate overrides, etc) would break your
application, then clearly a named AG is not going to be a path you
take.
--
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.