JSR 286 Portlet wiring in different pages.

When two jsr286 portlet wiring in different pages, Page-switching does not occur when the source portlet send a message to target portlet. A workway around was add the following code snippet to the init - method of
your portlets. This piece of code is the service initialization in the
pbjsrshipexample.war which triggers the initialization of the service
correctly.

public void init(PortletConfig config) throws PortletException {
super.init(config);

try {
Context ctx = new InitialContext();
PortletServiceHome serviceHome = (PortletServiceHome)
ctx.lookup("portletservice/com.ibm.portal.propertybroker.service.Propert
yBrokerService");
pbService =
(PropertyBrokerService)serviceHome.getPortletService(com.ibm.portal.propertybroker.service.PropertyBrokerService.class);
pbServiceAvailable = true;
}catch(Throwable t) {
getPortletContext().log("MyPortlet could not find
property broker service!");
}
}

 

 

This bug has been fixed on WPS 6.1.0.1, the apar number is PK71507

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章