Can't get liferay session in proxy-portlet

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Can't get liferay session in proxy-portlet

fritz
Hope I didn't misunderstood how proxy portlet works.
I have 2 simple forms wich in fb are exchanging values between them  by session and they work fine.
My intention is to make them work under liferay proxy-portlet and also share the session to liferay portlet session.
I'm able to set-get liferay portlet session correctly.
I've modified liferay-portlet.xml under proxy-portlet folder to include
<private-session-attributes>false</private-session-attributes>
and included 2 proxy-portlets with each form.
None none of them  exchange data each other  and liferay is not able to get - set session in proxy-portlets.


Fritz
 
Reply | Threaded
Open this post in threaded view
|

Re: Can't get liferay session in proxy-portlet

Erik Bruchez
Administrator
With the proxy portlet, your forms work in a *servlet* environment. That environment can be a completely separate servlet container, or it can be within the same servlet container which runs Liferay (usually Tomcat). Either way, the session accessed will be that of a servlet.

The proxy portlet connects to the Form Runner runtime running in that servlet environment via HTTP. If the servlet container is remote, there can be no sharing of session at all between the proxy portlet and the forms.

If the servlet container is local, there could possibly be some kind of sharing as the two will work in the same JVM. But note that the proxy portlet's session object will be different from the forms' session. So here too I wouldn't expect session sharing to work.

-Erik
Reply | Threaded
Open this post in threaded view
|

Re: Can't get liferay session in proxy-portlet

fritz
Ah!
As the proxy portlet  runs in servlet enviroment it's now clear to me what is going wrong.
Thank you for your answer Erik.

Fritz