cancel
Showing results for 
Search instead for 
Did you mean: 

Portalruntime.getResource is null in j2ee application deployed in sap j2ee

Former Member
0 Kudos

Hi ,

I have a j2ee application that is deployed in sap j2ee engine . The j2ee engine and portal servers are the same. I want to retrive the portal runtime resource for UWL, but i am getting null from the below statement - PortalRuntime.getRuntimeResources().

System.err.println("portal runtime : "+ PortalRuntime.getRuntimeResources());

IUWLService uwlService = (IUWLService) PortalRuntime.getRuntimeResources().getService(IUWLService.ALIAS_KEY);

\

\

Please do suggest how to retrieve the UWLService in a j2ee application that runs in sap portal.

Thanks.

Ritushree Saha

Accepted Solutions (1)

Accepted Solutions (1)

former_member182598
Active Contributor
0 Kudos

Hi Ritushree,

Yor approach is not correct. You need to do a JNDI lookup for the service.

Refer

http://help.sap.com/saphelp_nw04/helpdata/en/42/9ddd0cbb211d72e10000000a1553f6/frameset.htm

Thanks

Prashant

Former Member
0 Kudos

Hi Prashant ,

Thanks for your help. Following the document helped me get fetch the portal service.

Thanks

Ritushree

Answers (0)