Вопрос

I'm trying to get rendered WCM content in an Asych bean (which implements the Work interface). I can create a Workspace using a username and password, but I don't see an API to create a RenderingContext without passing either a portlet request/response or a servlet request/response pair).

Is there any way I can either 1) Create a RenderingContext without a portlet or servlet request and response, or 2) Render WCM content in an asynchronous work bean some other way?

I'm using IBM Web Content Management, WebSphere Portal and WAS versions all at versions 6.1.x.

Это было полезно?

Решение

According to the API you can't get a RenderingContext without a ServletRequest or PortletRequest. You might need to make an http request back to the WCM servlet or write a web service that use the WCM API.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top