Re: SessionStore on database

2020-04-29 Thread Martin Grigorov
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

2020-04-29 Thread Andrea Del Bene

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

2020-04-29 Thread Shengche Hsiao
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
--->


[ANNOUNCE] WicketStuff 8.8.0 Released

2020-04-29 Thread Maxim Solodovnik
WicketStuff core 8.8.0 based on Apache Wicket 8.8.0 is released
and soon will be available at Maven Central!

The changelog is:

Maxim Solodovnik (3):
  Switching to the next development version
  Dependencies and plugins are updated
  wicketstuff 8.8.0 is released

The WicketStuff team

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



Re: SessionStore on database

2020-04-29 Thread Thomas Heigl
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
>
> ->
>