wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grigorov <mgrigo...@apache.org>
Subject Re: Accessing WebApplication from the service layer
Date Mon, 03 Feb 2014 14:13:55 GMT
class MyApp extends WebApplication {

@Inject EntityLockService lockService;

@Override
public void sessionUnbound(String sessionId) {
   lockService.cleanup(sessionId);
}
}

Martin Grigorov
Wicket Training and Consulting


On Mon, Feb 3, 2014 at 3:09 PM, ChambreNoire <awe@tentelemed.com> wrote:

> Yes however I also store the id of the session that owns the lock in a map
> so
> that I can easily flush locks when a user session expires. This would mean
> that EntityLockService would need access to the current WebSession which
> also seems messy...
>
> Chambre
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Accessing-WebApplication-from-the-service-layer-tp4664145p4664149.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message