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.
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