Skip to Content
Former Member
Jan 17, 2012 at 09:18 PM

km api and session bean


Hi all,

i am trying to use KM Api inside a session bean i need to expose as a webservice.

My webservice needs to access KM to navigate some folders and files.

I have download an example from SDN but i get an exception on the following statement testing it using WS Navigator:

' user = WPUMFactory.getUserFactory().getEP5User(serviceUser);'

//Java Code:

IUser serviceUser;

try {

serviceUser = UMFactory.getUserFactory().getUserByUniqueName("cmadmin_service"); //it's ok user = WPUMFactory.getUserFactory().getEP5User(serviceUser);

IResourceContext ctxt = new ResourceContext(user);

} catch (Exception e) {

// TODO Auto-generated catch block



Anyone knows how to access KM from a session bean ?

I have also tried to migrate a working webdynpro example without success.