Skip to Content

How to Access Portal Registry Remotely

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:

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.SECURITY_PRINCIPAL, "Administrator");
props.put(Context.SECURITY_CREDENTIALS, "");
props.put(Context.PROVIDER_URL, "localhost:50004");
try {
  InitialContext ctx = new InitialContext(props);
} catch (NamingException e) {


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


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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 07, 2004 at 05:39 PM

    Hi Detlev,

    I'm not sure I understand your problem completely but here goes...

    As I understand it, the Portal Registry is a singleton class which offers convenience methods to bind and lookup objects in the JNDI. A portal application would access the registry as follows

    So, I don't think you could access everything in the portal registry in one go but I think you could use the convenience methods to achieve the same thing.

    Have you considered creating a portal service which accesses the Portal runtime. You could then access this portal service from:

    1) A SAP J2EE application running on the same 6.20 AS as the portal (documented in the Portal Runtime Document here on SDN - search for Portal Runtime).

    2) Remotely by creating a web service on the portal which access the PortalRuntime singleton to invoke the methods you need.

    Hope this helps,


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.