フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
subrat kumar mishra
Ipc
2012/09/23 12:26
答え

subrat kumar mishra

ランク: New Member

投稿: 13

参加年月日: 2012/09/03

最近の投稿

pls send me a ipc session based exampple,i send two portlet pls cheak it reply me not getting th out put
添付ファイル: portlet a.docx (11.8k), portlet b.docx (11.5k)
Harish Kumar
RE: Ipc
2012/09/23 22:24
答え

Harish Kumar

ランク: Expert

投稿: 473

参加年月日: 2010/07/31

最近の投稿

Hi Subrat,

To share session attribute between different portlets you can make use of following property

1session.shared.attributes=COMPANY_,LIFERAY_SHARED_,org.apache.struts.action.LOCALE,PORTLET_RENDER_PARAMETERS_,PUBLIC_RENDER_PARAMETERS_POOL_,USER_


To set attribute -

1actionRequest.getPortletSession().setAttribute("LIFERAY_SHARED_session_attr", "Value",    PortletSession.APPLICATION_SCOPE);


To get attribute -

1actionRequest.getPortletSession().getAttribute("LIFERAY_SHARED_session_attr",PortletSession.APPLICATION_SCOPE)


HTH
Mazhar Alam
RE: Ipc
2012/09/24 5:36
答え

Mazhar Alam

ランク: Regular Member

投稿: 201

参加年月日: 2011/11/25

最近の投稿

Thats nice Subhash!!
David H Nebinger
RE: Ipc
2012/09/24 6:20
答え

David H Nebinger

Community Moderator

ランク: Liferay Legend

投稿: 11511

参加年月日: 2006/09/01

最近の投稿

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).
Rahul Pande
RE: Ipc
2012/09/25 4:52
答え

Rahul Pande

ランク: Expert

投稿: 308

参加年月日: 2010/07/06

最近の投稿

David 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
RE: Ipc
2012/09/28 8:24
答え

subrat kumar mishra

ランク: New Member

投稿: 13

参加年月日: 2012/09/03

最近の投稿

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
Jack Bakker
RE: Ipc
2012/09/29 9:28
答え

Jack Bakker

ランク: Liferay Master

投稿: 840

参加年月日: 2010/01/03

最近の投稿

If I remember correctly the Liferay in Action book introduces IPC rather well
Rehan Pathan
RE: Ipc
2013/05/13 23:50
答え

Rehan Pathan

ランク: New Member

投稿: 7

参加年月日: 2013/01/30

最近の投稿

hi,
Another example for ipc you can check on following
attuneinfocom/how-create-ipc-portlet-liferay-611-ga2-0