cancel
Showing results for 
Search instead for 
Did you mean: 

WebDynPro - UWL Portal Service - Cache Clearing

Former Member
0 Kudos

Hello All...

I am trying to write a webdynpro that will use the uwl portal service (<a href="http://help.sap.com/javadocs/NW04S/SPS09/uw/com/sap/netweaver/bc/uwl/IUWLService.html">API</a>) and display work items in a small enough format for the BlackBerry. This works fine but what I have found is this...when I clear the UWL cache, the items will not come back into the list unless I open the UWL in the portal for that user. It appears that the portal UWL app kicks off some type of retrieval method that does not seem to be available in the UWL Portal Service APIs. I am almost ready to abandon the UWL Portal Service.

Here is the code I am using to get the service, session and context...I am using some other code to retrieve the items from the ItemManager (even tried the refresh cache method there):

	IUWLService uwls = null;
	UWLContext uwlContext = new UWLContext();
	IUWLSession uwlSession = null;

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

	
	try {
		context = new InitialContext(env);			
		uwls = (IUWLService)context.lookup("/broker/services/" + IUWLService.ALIAS_KEY );

		uwlContext.setAllowBackEndConnections(true);		
		uwlContext.setUser(WDClientUser.forceLoggedInClientUser().getSAPUser());
		uwlContext.setLocale(WDClientUser.getLoggedInClientUser().getSAPUser().getLocale());

		uwlSession = uwls.getUwlSessionForWebDynproClient(uwlContext);
		uwlContext.setSession(uwlSession);
	} catch (Exception e) {
		e.printStackTrace();
		wdControllerAPI.getMessageManager().reportException(e.getMessage(),true);
	}

Any ideas how I can make the UWL Portal Service get data from all of its connections?

Thanks,

BK

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello ...

Any thoughts on this? I was hoping to be able to use this service but have spent many hours trying to figure out how to get the service to retrieve items like the portal UWL does but without any success.

Thanks,

BK

Former Member
0 Kudos

Hi Brian,

Were you successful?

I'm thinking of doing the same thing.

Regards,

Mel Calucin

Bentley Systems