![]() |
![]() |
e-docs > Tuxedo > Administering a Tuxedo Application at Run Time > CORBA API |
Administering a Tuxedo Application at Run Time
|
Synopsis
Sets the context for the current thread. This method supports the development of a multithreaded server application.
C++ Binding
void set_ctx(CORBA::ORB::Ctx aContext)
Parameter
Return Value
None.
Description
This method sets the context for the current application-managed thread. The context parameter provided must have been obtained in a previously-executed thread that is managed by the BEA Tuxedo system or in an application-managed thread that has already been initialized.
Note: Do not call the set_ctx method in a thread that is managed by the BEA Tuxedo system. The BEA Tuxedo system performs the appropriate context propagation automatically for the threads it manages. If your application calls this method on a thread managed by the BEA Tuxedo system, the BAD_PARAM exception is thrown.
Example
TP::orb()->set_ctx(thread->context);
See Also
CORBA::ORB::get_ctx()
CORBA::ORB::clear_ctx()
![]() |
![]() |
![]() |
![]() |
||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |