CORBA Programming Reference
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Sets the context for the current thread. This method supports the development of a multithreaded server application.
void set_ctx(CORBA::ORB::Ctx
aContext
)
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.
TP::orb()->set_ctx(thread->context);
![]() ![]() |
![]() |
![]() |