Freeing Resources After Processing
To free local and remote resources created by the services, call the wm.ln.utils.garbage:recycle and/or wm.ln.authentication:logout utility service in each flow or Java service. For example, within a flow you create a session object, send an email, call recycle, then send a newsletter, then call logout.
The
wm.ln.utils.garbage:recycle service recycles all Domino objects at the root level of the pipeline, including session objects if they exist. Session objects are recycled last. Use the
recycle service between processing steps if you have more work to do and want to reuse the same session object. Do leave the session object at the root level of the pipeline or else it will be recycled. For more information, see
wm.ln.utils.garbage:recycle.
The
wm.ln.authentication:logout service checks to see if there is a session object at the root level of pipeline. The
logout service requires that there be a session object in the pipeline, and if there is, it scans the pipeline, and then call the
recycle service to recycle all other objects, and then recycles the session object. If there is no session object, the
logout service fails. Always use the
logout service as the last step in a flow or Java service to ensure that all objects are recycled. For information about the input and output parameters, see
wm.ln.authentication:logout.