onRelease

activate

Activate the service in this server. Perform setup operations needed for
this service to function on this server. If activate throws any
RuntimeException, the service will be activated in another server if
possible.

deactivate

Deactivate the service on this server. Relinquish ownership over resources
so that it can be claimed by another server where activate will be called.
Any RuntimeExceptions thrown by deactivate will be ignored and activate
will be attempted elsewhere.