ramu_indian
07-03-2006, 01:59 AM
Is it possible that we restrict our servlet's accessibility to limited number of users?
If so how?
Please help.
Rk
If so how?
Please help.
Rk
|
Click to See Complete Forum and Search --> : Serlvlet accessibility ramu_indian 07-03-2006, 01:59 AM Is it possible that we restrict our servlet's accessibility to limited number of users? If so how? Please help. Rk Khalid Ali 07-03-2006, 08:43 AM what you can do is test of the accessing user is a specific user if so then allow them further down in the servlet else just don't allow them full access...there are ways to achieve it 1. Write a routine in the servlet itself that checks who is the user 2.Write a filter class and filter accessing users, if a valid user then allow access to servlet else redirect to where ever ramu_indian 07-04-2006, 03:43 AM Thank you. But what i mean to ask is not validating the user. How to limit the total no. of actual clients accessing a particular servlet. Assume that I am developing a banking application. And there is a servlet that tests whether the username and password is correct or not. Now if one million users are trying to log-in. And the servlet is in action. In what way the servlet will serve all the one million users in order to give results to all the users. I want my servlet to WORK FOR ONLY first 100 PEOPLE who log in. Khalid Ali 07-04-2006, 11:51 AM well (if I understadn correctly) you may want to look into the option #2 in my earlier post. Using a filter you can maintain that how many users have been logged in for every request and as soon as a user is logged of you can allow the next requestee to login. Essentially you will have to come up with a logic that will calculate what you want to set a business rule for login or logged in users. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |