Programming Guide |
Advertises services offered by a server to a client
advertise {ALL | SERVICEserviceName
| GROUPserviceGroup
}
- ALL
- Advertise all services defined in the JIF.
- SERVICE
serviceName
- Advertise a service that is defined in the JIF, where
serviceName
can be up to 15 characters long. The JIF is consulted to validate the service name.GROUP
serviceGroup
- Advertise all services belonging to the named group, as defined in the JIF, where
serviceGroup
can be up to 31 characters long.
JetNet, Oracle Tuxedo
Server
The
advertise
command reads the specified services from the JIF and advertises them to clients. If a service is already advertised, its JIF definition is reread and the service is readvertised. This might occur during development or maintenance when a server is reinitialized after a JIF entry is updated or corrected. If successful,advertise
sets thetp_return
property to the number of services advertised.You can advertise individual services, all services in a group, or all services. For example, the following code advertises service
transfer
:advertise SERVICE "transfer"This code advertises all services in the
emp_account
group:advertise GROUP "emp_account"The next example advertises all services and logs a message:
proc adv_and_log
vars messageadvertise ALL
message = @app()->tp_return##" services advertised."
log message
Execution of
advertise
can raise the following exceptions: