Programming Guide



unadvertise

Unadvertises services from a server

Synopsis

unadvertise {ALL | SERVICE service | GROUP serviceGroup}

Arguments

ALL
Unadvertise all advertised services.

SERVICE service
Unadvertise service. The service name can be up to 15 characters in length.

GROUP serviceGroup
Unadvertise all services advertised via serviceGroup. If services that are contained in a group are advertised individually or through the ALL option, this option has no effect on them and no exception event is raised.

Environment

JetNet, Oracle Tuxedo

Scope

Server

Description

The unadvertise command unadvertises services previously advertised via the advertise command. You can unadvertise individual services, services from a group, or all services. For example, this statement unadvertises all services:

unadvertise ALL

The following statement unadvertises service transfer:

unadvertise SERVICE "transfer"

The tp_return property is set to the number of services successfully unadvertised.

Exceptions

The unadvertise command can generate these exceptions:

Exception Severity Cause
TP_INVALID_SERVICE
TP_COMMAND

SERVICE is used and the service has not been advertised

TP_NO_SERVICES_ADVERTISED
TP_WARNING

ALL is used and no services have been advertised.

See Also

advertise