Transports and Interfaces: Siebel eBusiness Application Integration Volume III > Integrating with Java > About Running the Java Data Bean >

Connect String and Credentials for the SiebelDataBean


When using the SiebelDataBean directly, without any generated code, three arguments must be passed to the login method. A fourth argument, language code, is optional.

  • connect string
  • Siebel username
  • Siebel password
  • language code (default is enu)

The connect string has the following form:

siebel://SiebelServerName:SCBPort/EnterpriseName/XXXObjMgr_lang

For example,

siebel://mymachine:2321/mysiebelenterprise/SCCObjMgr_enu

When using generated code, by default, these parameters are taken from the file siebel.properties, which must be in the classpath of the JVM. These properties are read from siebel.properties at the time an instance of the generated business service class is created using the parameterless constructor. They may be overridden by calling the methods setConnectString, setUserName, setPassword, and setLanguage any time prior to calling initialize() or invoking a business service method (such as mGenericMethod in Table 26). This is the behavior when the default (parameterless) constructor of the generated Java class is used.

Alternatively, the generated class provides the following four constructors with arguments:

  • One String argument: the name of the property file to be used.
  • Three String arguments: the connect string, username, and password. No properties file is used.
  • Four String arguments: the connect string, username, password, and language. No properties file is used.
  • SiebelDataBean argument: the SiebelDataBean passed should already have parameters assigned and its login method executed.
Transports and Interfaces: Siebel eBusiness Application Integration Volume III