问题标签 [wsrp]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
661 浏览

portlet - webcenter 中的本地 portlet

我开始使用 webcenter 10.3.5(最新版本)开发一个门户,据我所知,我只能通过 WSRP 使用 portlet,即使它们是本地的。我不想招致性能问题,所以我试图为维护 webcenter 的自定义功能的本地 portlet 寻找替代方案(例如,将删除 portlet 添加到 webcenter composer 中的页面)。在我的情况下,什么是维护 portlet 范式同时又不会引发性能问题的最佳解决方案?

作为旁注,我进行了一些调查,并且我知道我可以将 ADF 任务流公开为 portlet,目前我认为这是唯一的方法。我想知道是否还有其他方法可以做到这一点...

更详细地说,我们正在设计的门户是一家拥有合理数量客户的电信公司的自助门户。大多数时候,他们不会进行长时间的交易,他们希望完成一些任务,例如为手机充值、发送 SMS、交换定价计划等。从业务角度来看,他们希望在此门户和其他门户之间共享 portlet他们有。我的第一个并且可能是乌托邦式的方法是将所有内容都视为一个 portlet,因为所有需求的设计都考虑到了这一点,即所有内容都应该是可重用的。但是,我很难找到在 webcenter 中仅使用通过 wsrp 协议访问的 portlet 构建的站点的在线参考。我们也有一些要求,即某些 portlet 应该按照一些规则出现,这些规则会随着客户端的变化而变化,因此一切都将是动态的。此外,在某些情况下,他们希望通过 webcenter composer 配置页面应显示的 portlet。考虑到所有这些,我想知道考虑一种方法是否合理,一切都由 wsrp portlet 组成。从我的角度来看,另一种选择是混合,即一些部分是通过 wsrp 协议访问的 portlet,即外部 portlet,其他部分是也可以通过 webcenter composer 组合的任务流 我想知道如果一切都由 wsrp portlet 组成,考虑一种方法是否合理。从我的角度来看,另一种选择是混合,即一些部分是通过 wsrp 协议访问的 portlet,即外部 portlet,其他部分是也可以通过 webcenter composer 组合的任务流 我想知道如果一切都由 wsrp portlet 组成,考虑一种方法是否合理。从我的角度来看,另一种选择是混合,即一些部分是通过 wsrp 协议访问的 portlet,即外部 portlet,其他部分是也可以通过 webcenter composer 组合的任务流

0 投票
1 回答
695 浏览

java - 如何启用 portlet WSRP?

我有一个liferay java portlet,我想让它启用WSRP。除了 liferay-portlet.xml 中的标签 true 之外,我还必须包含任何特定的配置文件吗

任何指针都会有所帮助。

谢谢,洛克

0 投票
1 回答
454 浏览

iframe - IBM Portal Server 与非 wsrp 应用程序的集成

该项目有一种情况可以描述为:必须构建一个门户应用程序。预计这将成为许多现有的非 Portlet 应用程序的所在地(有些基于 Java EE,有些则不是)。

显然,门户将提供 SSO。将非 portlet 应用程序呈现到门户的选项似乎使用 iFrame 或 URL 重定向。无论哪种情况,看起来请求都必须通过门户服务器 (??)。

该解决方案面临哪些挑战?实现这一点的最佳实践?

0 投票
1 回答
144 浏览

portlet - 我们可以在非 portlet 容器上开发和部署 WSRP 生产者吗?

如果 WSRP 生产者是一个 Web 服务,但具有特定的 WSDL 表单并且请求和响应包含 HTML,我们是否可以开发 WSRP 生产者以仅部署在 Web 容器上,而不使用 portlet 容器来生产 WSRP。

0 投票
1 回答
232 浏览

portlet - Are filters available in JSR-168 portlets

Is there any provision to implement filters for JSR-168 portlets similar to the servlet filters we normally configure in J2EE applications? Am basically new to using portlets and I am not sure if this question is already asked here. I searched and was not able to find an appropriate one.

My objective is to do a generic method call before the portlets are invoked each and every time. Am deploying the application in a OC4J-WSRP container. Is there any alternative approach to achieve this in case if there is no feature of filters?

0 投票
1 回答
489 浏览

liferay - Liferay and WSRP portlets: wrong URLs on WSRP consumer

Currently I'm checking out Liferay and its portlet feature, especially remote portlets via WSRP.

I've got two liferay instances running on different machines in the same network. Now I want to share a portlet from one of the liferay instances to the other, so I've installed the WSRP app on both installations and configured one of the nodes as WSRP Producer and the other as WSRP Consumer. My WSRP Producer publishes the portlet for currency calculations (Währungsrechner in German) which is included in Liferay. At first glance, this WSRP portlet seems to work on the WSRP consumer side - I can add it to a page of the WSRP consumer and its content (some input boxes) is displayed correctly.

But there is one problem:

The HTML form rendered by the portlet always submits to the WSRP produder's domain, not to the WSRP consumer's domain as I would expect. The action attribute of the tag contains the wrong domain name.

I've also written a small portlet for debugging purposes using the Liferay UI which simply prints the output of the JSP-Tag , installed it on the WSRP producer and embedded it in a page of the WSRP consumer. The URLs printed by this simple debugging portlet are always absolute URLs and point to the WSRP producer, even when the portlet is displayed on the WSRP consumer. I would expect that the URLs are either relative or that they point to the correct domain, e.g. to the WSRP consumer domain when the portlet is displayed via a page on the WSRP consumer liferay instance.

The reason for my evaluation of Liferay is, that we want to check if it is a suitable solution for developing portlets and providing these portlets via WSRP for remote usage. To further investigate the problem I've built a small debug portlet with the Liferay SDK and Eclipe Plugin. The portlet mainly consists of a simple JSP page which prints out the result of :

When I install this portlet on lifery.mycompany.net and publish it via the WSRP producer to liferay-2.mycompany.net, the output URL is:

Please note that the domain is liferay.mycompany.net instead of the expected liferay-2.mycompany.net.

How can I fix this? Do I need to adjust Liferay's configuration so that the WSRP Consumer replaces URLs from WSRP portlets with its own URL? Are there other factors that affect WSRP portlets and actionURLs? Any help on this issue would be greatly apreciated!

My setup is: - Liferay 6.2 CE with Tomcat 7 - Database is MySQL 5.5 - Oracle Java 7 - Liferay was configured with the inbuilt installation wizard

Thanks in advance!

2014-05-23: Here's some more info

I've also posted this question with some additional info in liferay's forums:

--> setting requires-namespaced-parameters to false in liferay-portlet.xml seems to fix the domain problem, but still the portlet's processAction method is not executed when the portlet is used via WSRP :(

Am I doing something wrong here? Any ideas and hints are welcome!

0 投票
1 回答
68 浏览

portlet - 我们可以在 J2EE 应用程序上使用 WSRP portlet 吗?

如何在 WSRP 中为 portlet 创建一个客户端作为 web 服务。即,portlet 公开为 web 服务,我们可以为该服务创建一个客户端并在 J2EE 应用程序中使用它。

0 投票
0 回答
64 浏览

liferay - 在 liferay 中向使用 wsrp 的远程 portlet 发送附加属性

当使用 wsrp 使用远程 portlet 时,是否可以发送其他属性并在远程 portlet 中访问它们?当在liferay 中为当前请求对象设置自定义属性时,该属性在远程portlet 中是不可访问的,因为它是一个完全不同的会话。有没有解决这个问题的最佳实践?或者这不是使用 wsrp 使用远程 portlet 的用例吗?

0 投票
1 回答
226 浏览

web-services - 使用 JBoss WSRP 生产者配置 Liferay WSRP 消费者

我正在将应用程序从 IBM Websphere 迁移到 JBoss Portal。这是一个门户应用程序,我似乎遇到了一些身份验证问题。我在 JBoss 上有一个 WSRP 生产者,在一个单独的 Liferay (Tomcat) 实例上有一个消费者。创建 Liferay 消费者时,无法访问 WSDL url。来自 JBoss server.log

来自 Liferay server.log

我对 Web 服务/SOAP/等非常陌生。并且不确定如何解决此问题。我在两台服务器上多次创建了相同的用户,但没有运气。我曾尝试使用 Fiddler 尝试进一步排除 SOAP 标头的故障,但没有收集到太多有用的信息。我将不胜感激任何提示或指示。

0 投票
1 回答
190 浏览

web-services - 将 WSRP portlet 从 Websphere 迁移到 Liferay - PortletRequest.getAttribute(USER_INFO) 返回 null

将此 portlet 迁移到 Liferay 6.2 GA4。代码在其 WSRP Producer 中在 Websphere 上工作,但我不相信它是使用任何类型的工厂创建的。基本上我认为问题围绕这里的 portletRequest 对象:

日志语句输出:

我在我的中定义了这些portlet.xml

<user-attribute> <description>FirstName</description> <name>user.name.given</name> </user-attribute> <user-attribute> <description>LastName</description> <name>user.name.family</name> </user-attribute>

USER_INFO 属性中哪里没有可用的内容?

更新:我刚刚测试了在本地使用自定义portlet(即在生成它的同一台服务器上),并且用户身份验证正常传播,正如我所期望的那样。因此,当从远程(Liferay)环境中使用 portlet 时,某处会出现断开连接。

更新:liferay.log从远程使用者访问 portlet 时显示以下内容。

更新:生成 NullPointer 的应用程序的堆栈跟踪: