Getting additional attributes for logged on users

2021-04-08 Thread Carsten Klein
Hi there, from a servlet, the logged on user is represented by a Principal instance, which has a getName() to get the logon name of that user. In most cases, that is a more or less cryptic name like c.klein or m.scott. Some of our customers like the name of the currently logged on user be

Re: [OT?] caching DB items in startup listener

2021-04-08 Thread Thomas Meyer
Hi, What happens when the DB has problems when the webapp starts? Will the startup fail then? I think doing lazy init is the better approach, when db comes back it will work again after the webapp did start. Mfg Thomas Am 8. April 2021 13:54:46 MESZ schrieb "Berneburg, Cris J. - US" : >Hi

Re: Setting a Request Attribute from a custom Realm

2021-04-08 Thread Christopher Schultz
Tim, On 4/8/21 09:11, Tim K wrote: On Wed, Apr 7, 2021, 3:43 PM Christopher Schultz < ch...@christopherschultz.net> wrote: You can't, using the existing API. You might be able to do it with some nasty ThreadLocal solution, but I think you are stuck without resorting to legerdemain. -chris

Re: [OT?] caching DB items in startup listener

2021-04-08 Thread Christopher Schultz
Cris, On 4/8/21 07:54, Berneburg, Cris J. - US wrote: Hi Folks I'm working on an old legacy app and noticed something. It caches a bunch of info (lookup table data) from the database using a ServletContextListener. I think opening DB connections in a listener is reasonable. While there is

Re: Setting a Request Attribute from a custom Realm

2021-04-08 Thread Tim K
On Wed, Apr 7, 2021, 3:43 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > You can't, using the existing API. > > You might be able to do it with some nasty ThreadLocal solution, but I > think you are stuck without resorting to legerdemain. > > -chris Would it be possible to

[OT?] caching DB items in startup listener

2021-04-08 Thread Berneburg, Cris J. - US
Hi Folks I'm working on an old legacy app and noticed something. It caches a bunch of info (lookup table data) from the database using a ServletContextListener. I think opening DB connections in a listener is reasonable. While there is no business logic in the listener, I'm not sure doing a

Re: Tomcat 9.0

2021-04-08 Thread Martin Grigorov
Hi, On Thu, Apr 8, 2021 at 3:25 AM Mohamed Eliyas Abdul Kadar < mohamed.ka...@neogenomics.com> wrote: > Hi All > I am planning to use Tomcat for my development server. Initially we > planned to go with version Tomcat 9.0.41. Now I see newer versions are > release on top of that and see the

Re: [OT] programming style or mental process ?

2021-04-08 Thread Carsten Klein
Guten Morgen Peter :) Guten Morgen Carsten and All [...] I may add, that a French Café au lait (pronounced Olé, which is not French :-O ) is also an option. Maybe my German coffee expertise is kind of narrow and shaped by personal experience (having my coffee w/o milk)... OLE? Isn't

Re: [OT] programming style or mental process ?

2021-04-08 Thread logo
Guten Morgen Carsten and All > Am 08.04.2021 um 07:20 schrieb Carsten Klein : > > >> (And dutch people. Where are they in this discussion by the way ? (but they >> have only one type of coffee I think)). > > Dutch people may only have one type of coffee (actually I don't know). But >