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

Accessing Portal Application from the J2EE Application: PROBLEM

Hi Experts,

I m referring this url:

http://help.sap.com/saphelp_nw70/helpdata/en/42/9ddd0cbb211d72e10000000a1553f6/content.htm

for accessing Portal Application from the J2EE Application.

Here a Procedure is given where 3 steps are given.

I m unable to understand wat the 3rd step says and how to implement it.

Please experts, help me out.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 01:43 PM

    Hi Pankaj,

    I am not an expert but probably can still help you out...

    I did go through the URL and step 3 is divided in two steps:

    1. Making use of enviornment variable to access portal

    You can do that by (as mentioned in the URL example below) :

     Hashtable env = new Hashtable();
     
    env.put(Context.INITIAL_CONTEXT_FACTORY,
                "com.sapportals.portal.prt.registry.PortalRegistryFactory");
    
    InitialContext context = new InitialContext(env);

    2. Using the JNDI lookup accessing the portal service you wish to access.

    IXSLTransformService xslTransformService =
                (IXSLTransformService) context.lookup(
    
                "/broker/services/" + IXSLTransformService.KEY);

    where KEY is the name of the service, that you wish to access. This service name should be defined in the portalapp.xml file in the format of <application name>.<service name>.

    If you have any more questions, please feel free.

    Regards and Good Luck,

    Dharmi

    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.