server/lib annoys me

2007-03-19 Thread Tremal Naik
Hello to you all, Going further into the building of my application the percentage of classes I need to include into the server/lib folder is growing too much. In a few days all my application will be deployed there instead of the webapps folder! The point is I defined a Valve which performs

RE: server/lib annoys me

2007-03-19 Thread Peter Crowther
From: Tremal Naik [mailto:[EMAIL PROTECTED] The point is I defined a Valve which performs license checking and it needs to access the DB. Why not a Filter? That could then be webapp-specific. - Peter - To

Re: server/lib annoys me

2007-03-19 Thread Tremal Naik
I need to perform license checking before the user authenticate. Filters filter the request only after authentication, do they? Thanks TN 2007/3/19, Peter Crowther [EMAIL PROTECTED]: From: Tremal Naik [mailto:[EMAIL PROTECTED] The point is I defined a Valve which performs license checking

Re: server/lib annoys me

2007-03-19 Thread David Delbecq
Do the licence checking at webapp startup. Either do this with an auto startup servlet, either do this with a context listener. I don't understand why you try to do a webapp specific stuff (licence checking) in a server context (a valve). And yes, filters applies only after authentification and

Re: server/lib annoys me

2007-03-19 Thread Tremal Naik
2007/3/19, David Delbecq [EMAIL PROTECTED]: I don't understand why you try to do a webapp specific stuff (licence checking) in a server context (a valve). Well, my license is limiting the number of contemporary sessions, i.e. there is a limit on the number of users can be logged in at the same

Re: server/lib annoys me

2007-03-19 Thread David Kerber
Tremal Naik wrote: 2007/3/19, David Delbecq [EMAIL PROTECTED]: I don't understand why you try to do a webapp specific stuff (licence checking) in a server context (a valve). Well, my license is limiting the number of contemporary sessions, i.e. there is a limit on the number of users can

Re: server/lib annoys me

2007-03-19 Thread Tremal Naik
2007/3/19, David Kerber [EMAIL PROTECTED]: session.invalidate() is complicated? Not at all, but I cannot login the user and then simply redirect him to the login form next time he'll perform some action. This would be confusing. If I could simply use the axe to make my job, my dear, I would

Re: server/lib annoys me

2007-03-19 Thread Tremal Naik
2007/3/19, Tremal Naik [EMAIL PROTECTED]: Please, bear in mind my original question was is it possible avoid using server/lib? I never asked for java/j2ee programming lessons Of course, I accept all suggestions I receive gratefully, I'm not a some kind of troll, the last comment was a specific

Re: server/lib annoys me

2007-03-19 Thread David Kerber
Tremal Naik wrote: 2007/3/19, Tremal Naik [EMAIL PROTECTED]: Please, bear in mind my original question was is it possible avoid using server/lib? I never asked for java/j2ee programming lessons Of course, I accept all suggestions I receive gratefully, I'm not a some kind of troll, the last

Re: server/lib annoys me

2007-03-19 Thread Mikolaj Rydzewski
Tremal Naik wrote: Well, my license is limiting the number of contemporary sessions, i.e. there is a limit on the number of users can be logged in at the same time. So, I need to filter user requests after web app startup. I may do this after the user has authenticated himself, but this means

Re: server/lib annoys me

2007-03-19 Thread Leon Rosenberg
How about performing login as part of your webapp? Than you'll have no problems whatsoever limiting anything you want in the filter. Leon On 3/19/07, Tremal Naik [EMAIL PROTECTED] wrote: 2007/3/19, Tremal Naik [EMAIL PROTECTED]: Please, bear in mind my original question was is it possible

Re: server/lib annoys me

2007-03-19 Thread David Delbecq
En l'instant précis du 19/03/07 13:31, Tremal Naik s'exprimait en ces termes: 2007/3/19, David Delbecq [EMAIL PROTECTED]: I don't understand why you try to do a webapp specific stuff (licence checking) in a server context (a valve). Well, my license is limiting the number of contemporary

Re: server/lib annoys me

2007-03-19 Thread Tremal Naik
2007/3/19, David Delbecq [EMAIL PROTECTED]: How about having your webapp implements some kind on 'license checking service' and, at webapp startup, put it available at the JNDI level? You valve (or realm) could then access this named service and simply issue a 'can i log in one more user?'