shany vizel

how to connect to a project with DB oracle repository

Discussion created by shany vizel on Jun 15, 2009
Latest reply on Aug 7, 2012 by Gerald Wigginton

hi

 

I am writing some envelope to use the rules with API methods My repository is oracle DB.  Can I use NdRomProject and NdPromProject objects for oracle DB repository? Currently I get null when I try to lookupEntry for NdRomProject. Is scenario possible? My code as far is: 

private NdRomConnectionContext romContext;

private NdPromProject promProject;

public void connectRepository() throws Exception {           

romContext = NdGenericRMASupport.connectToRepository(connectionArgs, true);

}

public void connectProject() throws Exception { 

NdPromProjectFactory projectFactory = romContext.getProjectFactory();

 

NdLocation projectLocation = NdLocationFactory.createLocation("WOM_BestWorkForce");

NdRomProject romProject = (NdRomProject)romRoot.lookupEntry(projectLocation);

promProject = projectFactory.createProject(romProject);

}

thank you very much

Outcomes