You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by ShengChe Hsiao <fr...@gmail.com> on 2020/04/29 03:29:46 UTC

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.
----------------------------------------------------------
--------------------------------------------->
front713@gmail.com
--------------------------------------------------------------------------------------------->

Re: SessionStore on database

Posted by Martin Grigorov <mg...@apache.org>.
Hi

On Wed, Apr 29, 2020, 19:55 Andrea Del Bene <an...@gmail.com> 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 <th...@umschalt.com>
> 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 <fr...@gmail.com>
> 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.
> >>> ----------------------------------------------------------
> >>> --------------------------------------------->
> >>> front713@gmail.com
> >>>
> >>>
> >>
> --------------------------------------------------------------------------------------------->
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: SessionStore on database

Posted by Andrea Del Bene <an...@gmail.com>.
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 <th...@umschalt.com> 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 <fr...@gmail.com> 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.
>>> ----------------------------------------------------------
>>> --------------------------------------------->
>>> front713@gmail.com
>>>
>>>
>> --------------------------------------------------------------------------------------------->
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: SessionStore on database

Posted by Shengche Hsiao <sh...@gmail.com>.
Thomas, thanks for your opinion, I'll try it

On Wed, Apr 29, 2020 at 2:49 PM Thomas Heigl <th...@umschalt.com> 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 <fr...@gmail.com> 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.
> > ----------------------------------------------------------
> > --------------------------------------------->
> > front713@gmail.com
> >
> >
> --------------------------------------------------------------------------------------------->
> >
>


-- 

----------------------------------------------------------------------->
We do this not because it is easy. We do this because it is hard.
----------------------------------------------------------------------->
ShengChe Hsiao
----------------------------------------------------------------------->
front713@gmail.com
front713@tc.edu.tw
----------------------------------------------------------------------->
VoIP : 070-910-2450
----------------------------------------------------------------------->

Re: SessionStore on database

Posted by Thomas Heigl <th...@umschalt.com>.
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 <fr...@gmail.com> 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.
> ----------------------------------------------------------
> --------------------------------------------->
> front713@gmail.com
>
> --------------------------------------------------------------------------------------------->
>