ссылки:
import com.siebel.data.*;
public class MyJavaDataBean {
private SiebelDataBean m_dataBean = null;
private SiebelBusObject m_busObject = null;
private SiebelBusComp m_busComp = null;
private SiebelService m_busServ=null;
public static void main(String[] args)
{
MyJavaDataBean demo = new MyJavaDataBean();
}
public MyJavaDataBean()
{
try
{
// instantiate the Siebel Data Bean
m_dataBean = new SiebelDataBean();
// login to the server
m_dataBean.login("siebel://siebeltest01.corp.icba.biz:2321/SBLTEST/FINSObjMgr_enu", "логин", "пароль","enu");
System.out.println(m_dataBean.loginName());
// get the business object
m_busObject = m_dataBean.getBusObject("Contact");
// get the business component
m_busComp = m_busObject.getBusComp("Contact");
m_busComp.setSearchSpec("Id", "*");
m_busComp.executeQuery(true);
System.out.println(m_busComp.firstRecord());
System.out.println(m_busComp.getFieldValue("Last Name"));
// logoff
m_dataBean.logoff();
}
catch (SiebelException e)
{
System.out.println(e.getErrorMessage());
}
}
}