Bookshelf Home | Contents | Index | Search | PDF |
Siebel Object Interfaces Reference > Programming > Getting Started with the Siebel Object Interfaces >
Java Data Bean
Siebel 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 JDK 1.3.1_03. Users can incorporate these libraries to build Java Applications, Applets, Servlets, JSPs, or Enterprise Java Beans into their Java-based applications.
NOTE: The Siebel JAR files (
SiebelJI.jar, SiebelJI_common.jar
andSiebelJI_<lang>
) need to be added to the CLASSPATH prior to compilation or execution.Supported Platforms and JDKs
Siebel Systems supports the use of the platforms and JDK versions specified in the system requirements and supported platforms documentation for your Siebel application.
Instantiating the Java Data Bean
To 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 the sample code for the Siebel Java Data Bean.
import com.siebel.data.*;
import com.siebel.data.SiebelException;public class DataBeanDemo
{
private SiebelDataBean m_dataBean = null;
private SiebelBusObject m_busObject = null;
private SiebelBusComp m_busComp = null;public static void main(String[] args)
{
DataBeanDemo demo = new DataBeanDemo();
}public DataBeanDemo()
{
try
{
// instantiate the Siebel Data Bean
m_dataBean = new SiebelDataBean();// login to the server
m_dataBean.login("Siebel://gatewayserver/enterpriseServer/ObjMgr/SiebelServer", CCONWAY, CCONWAY,"enu");// get the business object
m_busObject = m_dataBean.getBusObject("Opportunity");// get the business component
m_busComp = m_busObject.getBusComp("Opportunity");// logoff
m_dataBean.logoff();
}catch (SiebelException e)
{
System.out.println(e.getErrorMessage());
}
}
}Java Data Bean and the siebel.properties File
The 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 9 shows the properties in the siebel.properties file.
NOTE: Java System Properties are System Properties, not Siebel Properties.
Here is a sample Siebel.properties file:
siebel.connection.string = siebel.tcpip.rsa.none://test.siebel.com/siebel/sseobjmgr_enu/test
siebel.user.name = User1
siebel.user.password = password
siebel.user.language = enu
siebel.user.encrypted = false
siebel.conmgr.txtimeout = 3600
siebel.conmgr.poolsize = 5
siebel.conmgr.sesstimeout = 300000
siebel.conmgr.retry = 5
siebel.conmgr.jce = 1
Java Data Bean and Codepage Support
For 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
file.encoding
to the proper codepage. You can set the system property for the entire JVM (for example, java -Dfile.encoding=ascii <java_application> on the command line or with the use of the environment variable; reference your particular JVM for details) or for the given Java component by adding the following line to your Java component:System.setProperty("file.encoding", CodePageValue);
.Table 10 lists codepage mappings for JDB.
Encrypting Communication Between JDB and Siebel Server
Siebel eBusiness Applications 7.5 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 the system requirements and supported platforms documentation for your Siebel eBusiness Applications software.
To enable encryption support between the Siebel Server and a component built using the Java Data Bean
- Enable encryption in the corresponding Object Manager Server Component. Please refer to Siebel Server Administration Guidefor details on how to enable encryption within an Object Manager Server Component.
- Set the encryption parameter of the connect string in the Java Data Bean to
rsa
, which enables encryption support. For example,siebel.tcpip.rsa.none://<gateway>/<enterprise>/<ObjMgr>/<SiebSrvr>
After completing the two previous steps, communications between the Java Data Bean and the Siebel Server is encrypted.
To support encryption on platforms not supported by the RSA libraries, Siebel Systems supports the Java Cryptography Extension (JCE) v1.2.1 specification. JCE is designed so that other qualified cryptography libraries can be used as service providers.
To enable JCE support
- Download and install the JCE v1.2.1 software, policy files and documentation. Please refer to
http://java.sun.com/products/jce/index-121.html
for additional information on obtaining, installing and configuring your JVM for use with JCE. Please note that the Java Data Bean only supports static specification of JCE providers.- Modify the
java.security
file to specify your provider of choice and make sure that the necessary provider JAR files are included in the CLASSPATH.- Set the
siebel.conmgr.jce
property in thesiebel.properties file
to1
.After completing the three previous steps, communications between the Java Data Bean and the Siebel Server is encrypted.
Login Errors
The 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
The root cause of this error may be one of the following:
- OM or OM process down
- Hardware reset (OM hardware, router, switch, and so on)
- OS settings or OS networking issue
- Network failure
- NAT timeout
Bookshelf Home | Contents | Index | Search | PDF |
Siebel Object Interfaces Reference Published: 18 June 2003 |