Foren
Ipc
subrat kumar mishra, geändert vor 11 Jahren.
Ipc
New Member Beiträge: 13 Beitrittsdatum: 03.09.12 Neueste Beiträge
pls send me a ipc session based exampple,i send two portlet pls cheak it reply me not getting th out put
Harish Kumar, geändert vor 11 Jahren.
RE: Ipc
Expert Beiträge: 483 Beitrittsdatum: 31.07.10 Neueste Beiträge
Hi Subrat,
To share session attribute between different portlets you can make use of following property
To set attribute -
To get attribute -
HTH
To share session attribute between different portlets you can make use of following property
session.shared.attributes=COMPANY_,LIFERAY_SHARED_,org.apache.struts.action.LOCALE,PORTLET_RENDER_PARAMETERS_,PUBLIC_RENDER_PARAMETERS_POOL_,USER_
To set attribute -
actionRequest.getPortletSession().setAttribute("LIFERAY_SHARED_session_attr", "Value", PortletSession.APPLICATION_SCOPE);
To get attribute -
actionRequest.getPortletSession().getAttribute("LIFERAY_SHARED_session_attr",PortletSession.APPLICATION_SCOPE)
HTH
Mazhar Alam, geändert vor 11 Jahren.
RE: Ipc
Regular Member Beiträge: 191 Beitrittsdatum: 25.11.11 Neueste Beiträge
Thats nice Subhash!!
David H Nebinger, geändert vor 11 Jahren.
RE: Ipc
Liferay Legend Beiträge: 14914 Beitrittsdatum: 02.09.06 Neueste BeiträgeSubhash Pavuskar:
I hope This code may help you to understand IPC pls Find the attachment.
Please do not refer to this as IPC, because it's not.
IPC, in the portlet world, has a specific meaning and is based upon events and listeners at the portlet level.
All you've done in this code is set a variable in the portlet session's application scope. This is nothing more than sharing data, and is very much bad practice (want to change the portlet key? Have to touch all of your code that's using it).
Rahul Pande, geändert vor 11 Jahren.
RE: Ipc
Expert Beiträge: 310 Beitrittsdatum: 07.07.10 Neueste BeiträgeDavid H Nebinger:
Subhash Pavuskar:I hope This code may help you to understand IPC pls Find the attachment.
Please do not refer to this as IPC, because it's not.
IPC, in the portlet world, has a specific meaning and is based upon events and listeners at the portlet level.
All you've done in this code is set a variable in the portlet session's application scope. This is nothing more than sharing data, and is very much bad practice (want to change the portlet key? Have to touch all of your code that's using it).
I agree with David. This is just session sharing.
Please refer this link
NOTE : In the given link also they are considering session sharing as IPC, which is not correct.
subrat kumar mishra, geändert vor 11 Jahren.
RE: Ipc
New Member Beiträge: 13 Beitrittsdatum: 03.09.12 Neueste Beiträge
Hello ur provided example is work within the same project two portlet communication,
But i need example of two portlets from different project communication
pls reply me
But i need example of two portlets from different project communication
pls reply me
Jack Bakker, geändert vor 11 Jahren.
RE: Ipc
Liferay Master Beiträge: 978 Beitrittsdatum: 03.01.10 Neueste Beiträge
If I remember correctly the Liferay in Action book introduces IPC rather well
rehan khan, geändert vor 10 Jahren.
RE: Ipc
New Member Beiträge: 7 Beitrittsdatum: 31.01.13 Neueste Beiträge
hi,
Another example for ipc you can check on following
attuneinfocom/how-create-ipc-portlet-liferay-611-ga2-0
Another example for ipc you can check on following
attuneinfocom/how-create-ipc-portlet-liferay-611-ga2-0