Re: SessionStore on database
Hi On Wed, Apr 29, 2020, 19:55 Andrea Del Bene wrote: > Hi, > > if you haven't done it yet you should have a look at WicketStuff data > store projects: > > https://github.com/wicketstuff/core/tree/master/datastores-parent > > > this should give you some good ideas. > The data stores distribute the pages. Something else should be used to distribute the http sessions. > On 29/04/20 17:30, Shengche Hsiao wrote: > > Thomas, thanks for your opinion, I'll try it > > > > On Wed, Apr 29, 2020 at 2:49 PM Thomas Heigl > wrote: > > > >> Hi, > >> > >> There are two options I'm aware of: > >> > >> - You can use a session manager in your application server that stores > your > >> session in the database. I.e. Tomcat's JDBC store. > >> - You can use Spring Session with a JDBC store > >> > >> I recently implemented Spring Session for Wicket with Redis as a backing > >> store. There are minor issues with page locking that require some custom > >> code, but otherwise it works fine. > >> > >> Best regards, > >> > >> Thomas > >> > >> On Wed, Apr 29, 2020 at 5:30 AM ShengChe Hsiao > wrote: > >> > >>> Dear all > >>> > >>> I want to implement cross datacenter session replication for my web > app, > >>> can I persist session on shared database? If it does, how can I do? > >>> > >>> I searched the web, and found org.apache.wicket.protocol.http. > >>> SecondLevelCacheSessionStore.IClusteredPageStore > >>> > >>> I have an idea for implement above interface and persist session on > >> target > >>> database, right? > >>> > >>> > >>> ---> > >>> To boldly go where no man has gone before. > >>> > >>> ---> > >>> We do this not because it is easy. We do this because it is hard. > >>> - > >>> --> > >>> If I have seen further it is by standing on the shoulders of giants. > >>> -- > >>> -> > >>> front...@gmail.com > >>> > >>> > >> > -> > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: SessionStore on database
Hi, if you haven't done it yet you should have a look at WicketStuff data store projects: https://github.com/wicketstuff/core/tree/master/datastores-parent this should give you some good ideas. On 29/04/20 17:30, Shengche Hsiao wrote: Thomas, thanks for your opinion, I'll try it On Wed, Apr 29, 2020 at 2:49 PM Thomas Heigl wrote: Hi, There are two options I'm aware of: - You can use a session manager in your application server that stores your session in the database. I.e. Tomcat's JDBC store. - You can use Spring Session with a JDBC store I recently implemented Spring Session for Wicket with Redis as a backing store. There are minor issues with page locking that require some custom code, but otherwise it works fine. Best regards, Thomas On Wed, Apr 29, 2020 at 5:30 AM ShengChe Hsiao wrote: Dear all I want to implement cross datacenter session replication for my web app, can I persist session on shared database? If it does, how can I do? I searched the web, and found org.apache.wicket.protocol.http. SecondLevelCacheSessionStore.IClusteredPageStore I have an idea for implement above interface and persist session on target database, right? ---> To boldly go where no man has gone before. ---> We do this not because it is easy. We do this because it is hard. - --> If I have seen further it is by standing on the shoulders of giants. -- -> front...@gmail.com -> - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: SessionStore on database
Thomas, thanks for your opinion, I'll try it On Wed, Apr 29, 2020 at 2:49 PM Thomas Heigl wrote: > Hi, > > There are two options I'm aware of: > > - You can use a session manager in your application server that stores your > session in the database. I.e. Tomcat's JDBC store. > - You can use Spring Session with a JDBC store > > I recently implemented Spring Session for Wicket with Redis as a backing > store. There are minor issues with page locking that require some custom > code, but otherwise it works fine. > > Best regards, > > Thomas > > On Wed, Apr 29, 2020 at 5:30 AM ShengChe Hsiao wrote: > > > Dear all > > > > I want to implement cross datacenter session replication for my web app, > > can I persist session on shared database? If it does, how can I do? > > > > I searched the web, and found org.apache.wicket.protocol.http. > > SecondLevelCacheSessionStore.IClusteredPageStore > > > > I have an idea for implement above interface and persist session on > target > > database, right? > > > > > > ---> > > To boldly go where no man has gone before. > > > > ---> > > We do this not because it is easy. We do this because it is hard. > > - > > --> > > If I have seen further it is by standing on the shoulders of giants. > > -- > > -> > > front...@gmail.com > > > > > -> > > > -- ---> We do this not because it is easy. We do this because it is hard. ---> ShengChe Hsiao ---> front...@gmail.com front...@tc.edu.tw ---> VoIP : 070-910-2450 --->
Re: SessionStore on database
Hi, There are two options I'm aware of: - You can use a session manager in your application server that stores your session in the database. I.e. Tomcat's JDBC store. - You can use Spring Session with a JDBC store I recently implemented Spring Session for Wicket with Redis as a backing store. There are minor issues with page locking that require some custom code, but otherwise it works fine. Best regards, Thomas On Wed, Apr 29, 2020 at 5:30 AM ShengChe Hsiao wrote: > Dear all > > I want to implement cross datacenter session replication for my web app, > can I persist session on shared database? If it does, how can I do? > > I searched the web, and found org.apache.wicket.protocol.http. > SecondLevelCacheSessionStore.IClusteredPageStore > > I have an idea for implement above interface and persist session on target > database, right? > > > ---> > To boldly go where no man has gone before. > > ---> > We do this not because it is easy. We do this because it is hard. > - > --> > If I have seen further it is by standing on the shoulders of giants. > -- > -> > front...@gmail.com > > -> >
SessionStore on database
Dear all I want to implement cross datacenter session replication for my web app, can I persist session on shared database? If it does, how can I do? I searched the web, and found org.apache.wicket.protocol.http. SecondLevelCacheSessionStore.IClusteredPageStore I have an idea for implement above interface and persist session on target database, right? ---> To boldly go where no man has gone before. ---> We do this not because it is easy. We do this because it is hard. - --> If I have seen further it is by standing on the shoulders of giants. -- -> front...@gmail.com ->