Skip to Content
0
Dec 04, 2004 at 11:56 AM

How to Access Portal Registry Remotely

19 Views

Hi there,

probably a tough one, so I will offer 10 points without any hesitation for the one who gets me on the track:

The question arises from this topic, where Helmut asked how to access portal services remotely: https://forums.sdn.sap.com/thread.jspa?threadID=21332

After answering, I started to play around, for this is quite interesting in general, if used by WebDynpro or not.

What I achieved without problems was accessing the J2EE servers JNDI context (this holds for 6.20):

Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY,
    "com.inqmy.services.jndi.InitialContextFactoryImpl");
props.put(Context.SECURITY_PRINCIPAL, "Administrator");
props.put(Context.SECURITY_CREDENTIALS, "");
props.put(Context.PROVIDER_URL, "localhost:50004");
try {
  InitialContext ctx = new InitialContext(props);
  ctx.lookup("webContainer/applications/irj/irj/java:comp/env");
} catch (NamingException e) {
  e.printStackTrace();
}

Questions:

Is this the right way to access the portal registry?

If yes, how to get further?

If no, which way?

Basically: Is there a way to access the registry remotely?

If it is not possible on 6.20, is it on 6.40?

Thanks in advance

Detlev

PS: Already asked in EP Implementation, but without any success.