Bookshelf Home | Contents | Index | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Application Methods > Login MethodThe Login method allows external applications to log in to the COM Data Server, COM Data Control, or Java Data Bean, and to access the Siebel objects. The Login method allows the end user to invoke the Siebel application without being prompted for a login and password. The Login method determines the privileges granted, and the role and responsibility of the end user for that session. SyntaxApplication.Login([connectString,] userName, password) ReturnsA string containing the error code UsageVerify that the Siebel\bin directory is the current directory. To access the Data Control, make sure the default Data Source points to the database that you wish to access and set EnableOLEAutomation to TRUE in your CFG file (this is the default value for the argument). For information on formatting the connect string, read Connect String. Used WithCOM Data Control, COM Data Server, Java Data Bean ExampleThe Connect string for the COM Data Control is token-based; for example: host = "Siebel://my_computer/SIEBEL/objsrvr/my_computer" lang = "ENU" Because most languages use quotes to enclose text strings, you must use quotes inside parentheses; for example: To use the COM Data Control in Visual Basic:
To use the COM Data Control in C++:
The following code sample illustrates how to log in to the server and check for errors. Call SiebelAppControl.Login("host=""siebel://gtwy/enterprise/ObjMgr""", "SADMIN", "SADMIN") The following is a Java Data Bean example that logs into a Siebel Server and then logs off. import com.siebel.data.*; public class JDBLoginLogoffDemo public JDBLoginLogoffDemo() // instantiate the Siebel Data Bean // login to the servers // logoff catch (SiebelException e) |
Siebel Object Interfaces Reference |