You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by galo23 <ga...@gmail.com> on 2016/08/19 19:45:32 UTC
Web Session Clustering httpsession
hello , i am rookie with ignite and i want to know for web-session-clustering
if this function let me to have for example 2 web-apps in one server...
and sharing the http session.....without add lines of code.... i ask because
i
I tried unsuccessfully following this doc :
https://apacheignite.readme.io/docs/web-session-clustering
<https://apacheignite.readme.io/docs/web-session-clustering>
below are the web-apps with i make the test. the server was glassfish 3.1.2
I omitted the jars by the weight of the file
thanks. Aplicacion1Servlet.zip
<http://apache-ignite-users.70518.x6.nabble.com/file/n7176/Aplicacion1Servlet.zip>
Aplicacion2Servlet.zip
<http://apache-ignite-users.70518.x6.nabble.com/file/n7176/Aplicacion2Servlet.zip>
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Web-Session-Clustering-httpsession-tp7176.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Web Session Clustering httpsession
Posted by Vladislav Pyatkov <vp...@gridgain.com>.
Hi,
Why are you think, sharing of session is not work?
Clients determine own session by cookie. If session cookie is different,
this clients have different session.
On Tue, Aug 23, 2016 at 4:23 PM, galo23 <ga...@gmail.com> wrote:
> hi , thanks for answer.
>
> no the session is not the same. If i deployed the same app
> "Aplicacion1Servlet" in diferente domains, the session is sharing
> successfully.
>
> now when i deployed "Aplicacion1Servlet" and "Aplicacion2Servlet" in the
> same domain or diferente domains of glassfish happens with i told you
> before. Both apps have the same class and the same configuration the only
> thing that changes is the context. for Aplicacion1Servlet should be
> "localhost:8080/Aplicacion1Servlet/test1" and for Aplicacion2Servlet
> "localhost:8080/Aplicacion2Servlet/test2" is this a reason for not
> working?
> or should i have a diferent configuration ? maybe include a property or
> something like that?.
>
> Thanks.
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Web-Session-Clustering-httpsession-tp7176p7245.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>
Re: Web Session Clustering httpsession
Posted by galo23 <ga...@gmail.com>.
hi , thanks for answer.
no the session is not the same. If i deployed the same app
"Aplicacion1Servlet" in diferente domains, the session is sharing
successfully.
now when i deployed "Aplicacion1Servlet" and "Aplicacion2Servlet" in the
same domain or diferente domains of glassfish happens with i told you
before. Both apps have the same class and the same configuration the only
thing that changes is the context. for Aplicacion1Servlet should be
"localhost:8080/Aplicacion1Servlet/test1" and for Aplicacion2Servlet
"localhost:8080/Aplicacion2Servlet/test2" is this a reason for not working?
or should i have a diferent configuration ? maybe include a property or
something like that?.
Thanks.
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Web-Session-Clustering-httpsession-tp7176p7245.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Web Session Clustering httpsession
Posted by Vladislav Pyatkov <vl...@gmail.com>.
Hello,
Application logs look fine.
Are you sure, which use one session in app1 and app2?
Can you check session cookie? Is a session id same in both applications?
On Mon, Aug 22, 2016 at 3:49 PM, galo23 <ga...@gmail.com> wrote:
> hi ,
>
>
>
> below is the log file.
>
>
>
> thanks.
>
> log.log <http://apache-ignite-users.70518.x6.nabble.com/file/n7206/log.log
> >
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Web-Session-Clustering-httpsession-tp7176p7206.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>
--
Vladislav Pyatkov
Re: Web Session Clustering httpsession
Posted by galo23 <ga...@gmail.com>.
hi ,
below is the log file.
thanks.
log.log <http://apache-ignite-users.70518.x6.nabble.com/file/n7206/log.log>
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Web-Session-Clustering-httpsession-tp7176p7206.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Web Session Clustering httpsession
Posted by vkulichenko <va...@gmail.com>.
Hi,
Do Ignite nodes discover each other? Sounds like they do not form a single
cluster and therefore do not share the data.
-Val
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Web-Session-Clustering-httpsession-tp7176p7202.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Web Session Clustering httpsession
Posted by galo23 <ga...@gmail.com>.
hi ,
the result is that i am not getting the parameter in the app2 that
previously i set in the app1 . i get a null parameter.
the apps are attached in the first message. also in logs there is no error.
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Web-Session-Clustering-httpsession-tp7176p7200.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Web Session Clustering httpsession
Posted by vkulichenko <va...@gmail.com>.
I understand the use case. But I do not understand what is not working for
you. Can you please clarify? You get exceptions? Incorrect results? Anything
else?
-Val
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Web-Session-Clustering-httpsession-tp7176p7195.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Web Session Clustering httpsession
Posted by galo23 <ga...@gmail.com>.
hi,
what i want to do is to share the session http , i mean if a set an
Attribute to the session in the app1 , i will hope to get this in the app2
. like a said before both apps are deployed in the same server.
thanks
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Web-Session-Clustering-httpsession-tp7176p7190.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Web Session Clustering httpsession
Posted by vkulichenko <va...@gmail.com>.
Hi,
What exactly is not working for you?
-Val
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Web-Session-Clustering-httpsession-tp7176p7182.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.