Foros de discusión

Liferay 7 OSGI Portlets Events

Ramiro Aramburu, modificado hace 7 años.

Liferay 7 OSGI Portlets Events

New Member Mensajes: 3 Fecha de incorporación: 24/01/15 Mensajes recientes
Hi all,

Does anybody know how to make events in Liferay 7 between two OSGI portlets???
I have this on the sender:
@Component(
immediate = true,
property = {

"com.liferay.portlet.private-request-attributes=false",
"com.liferay.portlet.private-session-attributes=false",
"com.liferay.portlet.display-category=category.sample",
"com.liferay.portlet.instanceable=true",
"javax.portlet.display-name=Buscador comercios",
"javax.portlet.init-param.template-path=/",
"javax.portlet.init-param.view-template=/view.jsp",
"javax.portlet.resource-bundle=content.Language",
"javax.portlet.security-role-ref=power-user,user",
"javax.portlet.supported-publishing-event=java.lang.String;x:drawCoordenates"
},
service = Portlet.class
)

and this on the receiver portlet:

@Component(
immediate = true,
property = {
"com.liferay.portlet.display-category=category.sample",
"com.liferay.portlet.instanceable=true",
"javax.portlet.display-name=",
"javax.portlet.init-param.template-path=/",
"javax.portlet.init-param.view-template=/view.jsp",
"javax.portlet.resource-bundle=content.Language",
"javax.portlet.security-role-ref=power-user,user",
"com.liferay.portlet.private-request-attributes=false",
"com.liferay.portlet.private-session-attributes=false",
"javax.portlet.supported-processing-event=java.lang.String;x:drawCoordenates"
},
service = Portlet.class
)

but nothing happend.

In Liferay 6.2 you have to define a publisher, a listener and definde the event, but I don't know how or where to define the Event, or wich is the problem, althought I cannot find any example on the webs of ISGI Portlets with Events.

Thanks in advance for your help.....
thumbnail
Milen Dyankov, modificado hace 7 años.

RE: Liferay 7 ODGI Portlets Events

Expert Mensajes: 310 Fecha de incorporación: 30/10/12 Mensajes recientes
Try with:

"javax.portlet.supported-publishing-event=drawCoordenates; http://your.events.custom/ns"
"javax.portlet.supported-processing-event=drawCoordenates; http://your.events.custom/ns"
Ramiro Aramburu, modificado hace 7 años.

RE: Liferay 7 OSGI Portlets Events

New Member Mensajes: 3 Fecha de incorporación: 24/01/15 Mensajes recientes
not working, nothing happend.
Does anybody made any example of events working between two diferent OSGI Portlets Modules in a Liferay Workspace running on Liferay 7?
Because I cannot find any example of this, wich is weird because it was very used and usefull in Liferay 6.2 for example.
Also, there is nothing or almost nothing information about IPC inter portlet communnication with OSGI Framework... I would aprecciatte some links, tutorials, etc....
Ramiro Aramburu, modificado hace 7 años.

RE: Liferay 7 OSGI Portlets Events

New Member Mensajes: 3 Fecha de incorporación: 24/01/15 Mensajes recientes
nobody? I have some dificulties on IPC Events, Public Render Parameters IPC, Portlet Sessions IPC, between OSGI portlets.
For example where should I put this settings?
<container-runtime-option>
<name>javax.portlet.actionScopedRequestAttributes</name>
<value>true</value>
</container-runtime-option>