Skip navigation.

CORBA Programming Reference

  Previous Next vertical dots separating previous/next from contents/index/pdf Contents View as PDF   Get Adobe Reader

 


TP::application_responsibility()

Synopsis

Tells the TP Framework that the application is taking responsibility for the servant's lifetime.

Note: Do not use this method in applications written using BEA Tuxedo release 8.0 or later; instead, use the Tobj_ServantBase::_add_ref() method.

C++ Binding

static void application_responsibility(Tobj_Servant servant);

Arguments

servant

A pointer to a servant that is already known to the TP Framework.

Exceptions

TobjS::InvalidServant

Indicates that the specified servant is NULL.

Description

This method tells the TP Framework that the application is taking responsibility for the servant's lifetime. As a result of this call, when the TP Framework has completed deactivating the object (that is, after invoking the servant's deactivate_object method), the TP Framework does nothing more with the object.

Once an application has taken responsibility for a servant, the application must take care to delete servant when it is no longer needed, the same as for any other C++ instance.

If the servant is not known to the TP Framework (that is, it is not active), this call has no effect.

Return Values

None.

 

Skip navigation bar  Back to Top Previous Next