Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Using OIG for .NET : Instantiating the eCTSsession Object

Instantiating the eCTSsession Object
Constructors
Before any functionality can be invoked, you must instantiate an eCTSsession object. The eCTSsession class has the following constructors:
eCTSsession()
eCTSsession(boolean useWebContext)
The second constructor enables you to instantiate an eCTSsession object that does not send variables out of the web session’s request object to TIBCO Object Service Broker when an interaction is invoked. This is useful in cases where the component is instantiated in a web application, but the application programmer wants to explicitly control what web variables are sent to TIBCO Object Service Broker.
The first (default) constructor instantiates an eCTSsession object that sends all variables to TIBCO Object Service Broker on each interaction.
Example
The following example instantiates an eCTSsession object in Visual Basic .NET code:
Dim MySession As eCTSsession = New eCTSsession
'Invoke methods...
MySession.Close() 'Closes the session immediately
MySession = Nothing 'Frees the session object

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved