Skip to Content
author's profile photo Former Member
Former Member

Accessing remote portal service


in the documentation "How to Access a Portal Service Within a Web Dynpro Java Application" Jochen Guertler mentioned that it could lead to problems if one wants to use portal services from remote portal servers.

I understand that the described way just accesses local portal services.

Does anybody know how to access the services from remote servers?

Thx in advance


Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Dec 01, 2004 at 01:46 PM

    Hi Helmut,

    the actual code when calling WDPortalUtils.getServiceReference(String) is a simple, local JNDI lookup:

    public Object getServiceReference(String serviceName) {
      Hashtable environment = new Hashtable();
      try {
        InitialContext ic = new InitialContext(environment);
        return ic.lookup("broker/services/" + serviceName);
      } catch(Exception e) {
        // [...] some exception handling
      return null;

    So you would have to pass the PROVIDER_URL and would have to use a different INITIAL_CONTEXT_FACTORY, I suppose.

    This is definitely not supported by WebDynpro standards.

    Hope it helps


    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Helmut,

      of course you will have to use some lib's of the aimed system, but's that's the way...

      See /thread/21357 [original link is broken] where I have built up the way into J2EE engine, the open question is if the portal registry is bound into the J2EE servers context somehow or if not - if it is accessible directly and remotely.

      Best regards


  • author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2004 at 09:37 AM


    It is not possible to access to the portal registry in remote but we can use the portal webservice.

    You can create a portal webservice (it a portal service with the webservice extensions) with a method String getInfoFromRegistry(String key) but we cannot tranfer the registry or an object as portal service or JNDI context.

    If you want to acces to the portal service outside of th eportal tranform the portal service in portal webservice.

    So careful about the security , because the portal registry is more critical, setup the good security zone on the webservice to restrict the access

    Best Regards,


    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.