Re: Multitenant app: what's a good place to perform account lookup?

2013-06-26 Thread Martin Grigorov
Hi, I think you can use custom root request mapper for this too. See https://github.com/apache/wicket/blob/master/wicket-examples/src/main/java/org/apache/wicket/examples/requestmapper/LocaleFirstMapper.java?source=cc - it extracts the locale from the first url segment. On Tue, Jun 25, 2013 at

Re: Multitenant app: what's a good place to perform account lookup?

2013-06-26 Thread Bas Gooren
Martin, Thanks, that's another possible solution indeed. Met vriendelijke groet, Kind regards, Bas Gooren Op 26-6-2013 9:29, schreef Martin Grigorov: Hi, I think you can use custom root request mapper for this too. See

Multitenant app: what's a good place to perform account lookup?

2013-06-25 Thread Bas Gooren
Hi *, One of our multi-tenant apps uses the incoming hostname to look up the account to attach to. We've currently handled it like so: - Request scoped guice provider, which performs the lookup (which can return Account.UNKNOWN) - Base page class which validates the account returned by the