On Mon, 2011-10-17 at 01:10 +0530, sailendra karthik wrote: > On Sun, Oct 16, 2011 at 5:16 PM, Chema <demablo...@gmail.com> wrote: > > > > In my Custom Realm Implementation iam autheticating some user and > > > allowing > > > him to access my webapps(servlets or filters) (my application) > > > This authentication session i need it to be reused in my webapp(to avoid > > > another authentication) if it is an authorized session. > > > So for this purpose i want to set an object in the session and reuse > > that > > > object(connection Object) at my servlets level. > > > > > > How can i over come this > > > > > > > > > You can use a Filter and check if remote user is setted. > > I do it this way to load user info into user http session > > > > As you said that can work using Filters, > But the requirement is that it needs Tomcat level authentication. > > or else i dont know whether i completely misunderstood the concept of > realms.
>From what you've described so far, I see no reason why the standard realms tomcat provides wouldn't meet your needs. I suggest that you may not quite understand how the standard authentication mechanisms work. Try re-reading the documentation on them. No sense re-inventing a wheel that already rolls to your satisfaction. Or are we missing some crucial details? --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org