Anyone using spring-session redis with Grails 3?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Anyone using spring-session redis with Grails 3?

Eric Helgeson-2
Hey all,

I'm trying to get spring-session backed by redis working with the spring boot guide: 

* http://docs.spring.io/spring-session/docs/current/reference/html5/guides/boot.html

My commit from a fresh grails 3.0.3 app: 

* https://github.com/erichelgeson/grails3-redis-session/commit/31f15cec22a00861245b8b721f6ed7f841fa1802

It connects to redis and all the beans are created, but sessions don't get stored. If I add spring-security starter sessions do get stored but do not work after reboots of app (get a new session even though its valid, no objects on session are preserved). The sample from spring boot does work -  https://github.com/spring-projects/spring-session/tree/master/samples/boot

Wondering if Grails is doing something different to the sessions that's incompatible with spring-session?

This would be a pretty nice feature for cluster a bunch of grails 3 jar'd apps with just a few lines of code. Hope I'm just missing something simple.

Thanks!
-Eric

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/261d8d8b-d77a-4c50-9131-00457b8b6e47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Anyone using spring-session redis with Grails 3?

bobbywarner
This issue is being worked on here -- https://github.com/spring-projects/spring-session/issues/245


Thanks,
Bobby

On Thursday, July 23, 2015 at 9:12:52 AM UTC-5, Eric Helgeson wrote:
Hey all,

I'm trying to get spring-session backed by redis working with the spring boot guide: 

* <a href="http://docs.spring.io/spring-session/docs/current/reference/html5/guides/boot.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fdocs.spring.io%2Fspring-session%2Fdocs%2Fcurrent%2Freference%2Fhtml5%2Fguides%2Fboot.html\46sa\75D\46sntz\0751\46usg\75AFQjCNGQlOXGbHOE-9z3z-zqySt_bzc5hQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fdocs.spring.io%2Fspring-session%2Fdocs%2Fcurrent%2Freference%2Fhtml5%2Fguides%2Fboot.html\46sa\75D\46sntz\0751\46usg\75AFQjCNGQlOXGbHOE-9z3z-zqySt_bzc5hQ&#39;;return true;">http://docs.spring.io/spring-session/docs/current/reference/html5/guides/boot.html

My commit from a fresh grails 3.0.3 app: 

* <a href="https://github.com/erichelgeson/grails3-redis-session/commit/31f15cec22a00861245b8b721f6ed7f841fa1802" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Ferichelgeson%2Fgrails3-redis-session%2Fcommit%2F31f15cec22a00861245b8b721f6ed7f841fa1802\46sa\75D\46sntz\0751\46usg\75AFQjCNFDK8vGAl-vgYfheioj6Mlc_Gnn2w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Ferichelgeson%2Fgrails3-redis-session%2Fcommit%2F31f15cec22a00861245b8b721f6ed7f841fa1802\46sa\75D\46sntz\0751\46usg\75AFQjCNFDK8vGAl-vgYfheioj6Mlc_Gnn2w&#39;;return true;">https://github.com/erichelgeson/grails3-redis-session/commit/31f15cec22a00861245b8b721f6ed7f841fa1802

It connects to redis and all the beans are created, but sessions don't get stored. If I add spring-security starter sessions do get stored but do not work after reboots of app (get a new session even though its valid, no objects on session are preserved). The sample from spring boot does work -  <a href="https://github.com/spring-projects/spring-session/tree/master/samples/boot" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fspring-projects%2Fspring-session%2Ftree%2Fmaster%2Fsamples%2Fboot\46sa\75D\46sntz\0751\46usg\75AFQjCNHXjNTeWiIkYhp9-iPeur2DQN9yLg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fspring-projects%2Fspring-session%2Ftree%2Fmaster%2Fsamples%2Fboot\46sa\75D\46sntz\0751\46usg\75AFQjCNHXjNTeWiIkYhp9-iPeur2DQN9yLg&#39;;return true;">https://github.com/spring-projects/spring-session/tree/master/samples/boot

Wondering if Grails is doing something different to the sessions that's incompatible with spring-session?

This would be a pretty nice feature for cluster a bunch of grails 3 jar'd apps with just a few lines of code. Hope I'm just missing something simple.

Thanks!
-Eric

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/a39c9a72-a1f3-480a-84e7-b7005cb66e6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.