hi,
SUBJECT:When i am using The SBO object,to connect to The Repository That's Time I got an Exception
Exception Details
Exception in thread "main" DfServiceException:: THREAD: main; MSG: [DFC_BOF_CANNOT_FIND_OBJECT] Business object com.documentum.mycompany.sbo.ITest does not exist in docbase flower; ERRORCODE: ff; NEXT: null
at com.documentum.fc.client.impl.bof.registry.GlobalModuleRegistry.lookup(GlobalModuleRegistry.java:71)
at com.documentum.fc.client.impl.bof.classmgmt.ModuleManager.lookupModuleMetadata(ModuleManager.java:192)
at com.documentum.fc.client.impl.bof.classmgmt.ModuleManager.getModuleClass(ModuleManager.java:179)
at com.documentum.fc.client.impl.bof.classmgmt.ModuleManager.newModule(ModuleManager.java:135)
at com.documentum.fc.client.impl.bof.classmgmt.ModuleManager.newService(ModuleManager.java:86)
at com.documentum.fc.client.DfClient$ClientImpl.newService(DfClient.java:419)
at com.documentum.mycompany.TestClass.main(TestClass.java:26)
MyPrograms
i am using composer 6.5 and webtop 6.5,content server 6.5 versions
i created one sbo and i identified that sbo in webtop/system/modules/sbo folder
1)i create interface
package com.documentum.mycompany.sbo;
import com.documentum.fc.client.IDfService;
public interface ITest extends IDfService {
public void show();
}
2)i create the class
package com.documentum.mycompany.sbo;
import com.documentum.fc.client.DfService;
import com.documentum.fc.client.DfServiceException;
import com.documentum.fc.client.IDfSession;
import com.documentum.fc.client.IDfSessionManager;
import com.documentum.fc.common.DfLogger;
public class Test extends DfService implements ITest {
@Override
public void show() {
// TODO Auto-generated method stub
System.out.println("creating Test environ ment");
DfLogger.trace(this,"This is test sbo",null,null);
}
3)To The purpose of using The Sbo i wrote the below code
public class TestClass {
public static void main(String args[])throws DfException
{
IDfClientX clientx=new DfClientX();
IDfClient client=clientx.getLocalClient();
IDfLoginInfo info=clientx.getLoginInfo();
info.setUser("venkat@mellonsoft");
info.setPassword("mellon1234");
IDfSessionManager smgr=client.newSessionManager();
smgr.setIdentity("flower",info);
ITest tes=(ITest)client.newService(ITest.class.getName(), smgr);
tes.show();
}}
4)i also deployed the current jar files
Regards,
venkat