Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to use KM APIs, Can we use them in Standalone J2ee Application

Hi Experts,

I got KM APIs.

I need to use them to access the KM Repository Content.

I m a newbie in SAP KM.

Can anyone help me to use KM APIs.

For Eg: user = …
IResourceContext resourceContext = new ResourceContext(user);
RID rid = RID.getRID("/etc");
try {
  IResource resource = ResourceFactory.getInstance()
                       .getResource(rid, resourceContext);
  if( resource != null ) {
    // resource found
    System.out.println("resource " + resource.getRID() + " found");
  } else {
    // resource not found
    System.out.println("resource " + resource.getRID() + " does not exist");
catch( ResourceException e ) {
  // problem while retrieving the resource
                    "exception while trying to get resource " + e.getRID()
                    + ": " + e.getMessage()

How will i get the IUser populated?

Can i use KM APIs from a standalone J2EE application?

Can i Populate IUser in standalone J2EE application's Servlet?

Please help me out.

Waiting for reply


Helpful Answer

Not what you were looking for? View more on this topic or Ask a question