Skip navigation.

CORBA Programming Reference

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

 


CORBA::ORB::set_ctx

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

aContext

The context to be associated with this thread.

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()

 

Skip navigation bar  Back to Top Previous Next