Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Siebel Object Interfaces Reference > Programming > Getting Started with the Siebel Object Interfaces > About Java Data BeanSiebel Java Data Bean provides users with a native Java interface to access Siebel Object Manager. It provides functional access to the Siebel applications for both reading and writing data. Siebel Data Bean is a set of Java libraries built using J2SE Development Kit (JDK). Users can incorporate these libraries to build Java Applications, Applets, Servlets, JSPs, or Enterprise Java Beans into their Java-based applications. For more information on Java, refer to http://java.sun.com. A Java client that uses the Java Data Bean interface to connect to the Siebel server needs several JAR files that provide the objects and methods of the Siebel Object Interface to the Java language. The JAR files of the Java Data Bean interface are specific to the Siebel application version with which they were delivered. Do not use these JAR files with other versions of the Siebel server. NOTE: Before compilation or execution, add the Siebel JAR files ( Supported Platforms and JDKsRefer to Siebel System Requirements and Supported Platforms on Oracle Technology Network. Instantiating the Java Data BeanTo instantiate and use the Siebel Java Data Bean, you must instantiate a new SiebelDataBean Java object and call its login method. You cannot use methods that retrieve active Siebel objects, because there are no current active Siebel objects. You must instantiate your own Siebel objects. The following is sample code for the Siebel Java Data Bean: import com.siebel.data.*; public class DataBeanDemo public static void main(String[] args) public DataBeanDemo() // log in to the server // get the business object // get the business component // log off catch (SiebelException e) NOTE: If you are using a single sign-on (SSO) with Java Data Bean, you must use the login ID of an employee as the username and the value of the trust token (the TrustToken parameter in the application's CFG file) in the connect string to log into the server. For more information, see Connect String. Java Data Bean and the siebel.properties FileThe siebel.properties file, which is located in your classpath, can be used to provide default parameters for client applications connecting to Siebel applications using the Java Data Bean. Table 8 shows the properties in the siebel.properties file.
NOTE: Java System Properties are System Properties, not Siebel Properties. The following is a sample siebel.properties file: siebel.connection.string = siebel.tcpip.rsa.none://test.siebel.com/siebel/sseobjmgr_enu/test siebel.user.password = password siebel.conmgr.txtimeout = 3600 siebel.conmgr.sesstimeout = 300000 Java Data Bean and Codepage SupportFor the client and server to communicate correctly, the codepage of the Siebel server and client must be the same. If the client and server default codepages cannot be the same, you can alter the client codepage by setting the system property Table 9 lists codepage mappings for JDB. Encrypting Communication Between JDB and Siebel ServerSiebel Business Applications supports the encryption of communication between the Java Data Bean (JDB) and the Siebel Server. Preconfigured, it is possible to encrypt communication between the JDB and the Siebel Server using RSA's encryption libraries. For more information on supported platforms, see Siebel System Requirements and Supported Platforms on Oracle Technology Network. To enable encryption support between the Siebel Server and a component built using the Java Data Bean
To support encryption on platforms not supported by the RSA libraries, Oracle supports the Java Cryptography Extension (JCE) v1.2.1 specification. JCE provides a framework and implementations for encryption, key generation and key agreement, and Message Authentication Code (MAC) algorithms. JCE is designed so that other qualified cryptography libraries can be used as service providers. For more information on JCE, see http://java.sun.com/j2se/1.4.2/docs/guide/security/jce/JCERefGuide.html.
Login ErrorsThe Siebel Data Bean may return a login error including the following text: Siebel Exception thrown invoking login Method. Code--1. Message-Logon request 75 was abandoned after 2ms connection |
![]() |
![]() ![]() |
Siebel Object Interfaces Reference | Copyright © 2008, Oracle. All rights reserved. | |