需要从异步 bean 渲染 WCM 内容

发布于 2024-09-09 11:11:17 字数 650 浏览 2 评论 0原文

我正在尝试在 Asych bean(它实现 Work 接口)中获取渲染的 WCM 内容。我可以使用用户名和密码创建一个 Workspace,但我没有看到 API 用于创建 RenderingContext 而不传递 portlet 请求/响应或 servlet 请求/响应对)。

有什么方法可以 1) 创建一个没有 portlet 或 servlet 请求和响应的 RenderingContext ,或者 2) 以其他方式在异步工作 bean 中渲染 WCM 内容?

我使用的 IBM Web Content Management、WebSphere Portal 和 WAS 版本均为 6.1.x 版本。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

度的依靠╰つ 2024-09-16 11:11:17

根据 API,如果没有 ServletRequest 或 PortletRequest,则无法获取 RenderingContext。您可能需要向 WCM servlet 发出 HTTP 请求或编写使用 WCM API 的 Web 服务。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文