ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Advanced Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
I wantr to know, How many number of users logged in to 
website? can any one answer
 Question Submitted By :: Sudheerj2ee
I also faced this Question!!     Rank Answer Posted By  
 
  Re: I wantr to know, How many number of users logged in to website? can any one answer
Answer
# 1
The Number of threads can run simmultaneously by the server 
is equal to the number of persons can log into a web site.
 
Is This Answer Correct ?    4 Yes 9 No
Raju Ranjan Sinha
 
  Re: I wantr to know, How many number of users logged in to website? can any one answer
Answer
# 2
Number of users loged on website is depends on Pool Size of
there connection string. By Default MaxPoolSize=100 and
MinPolSize=0.
if Max pool size in 100 so only 100 user can loged in.If 101
user will try to simultaneously you will get TimeOut error
because your connectionstring wait to free one of connection
onject out of 100.
 
Is This Answer Correct ?    4 Yes 5 No
Ritesh Parkhi
 
 
 
  Re: I wantr to know, How many number of users logged in to website? can any one answer
Answer
# 3
Create a static variable and increment it every time the 
page/sit gets loaded.
 
Is This Answer Correct ?    6 Yes 1 No
Namy
 
  Re: I wantr to know, How many number of users logged in to website? can any one answer
Answer
# 4
Use listeners. Since you want to to know how many users have
logged in, so the login info would be stored in a session.
You can create a filter by extending HttpSessionListener,
and update a static variable when the session is created.

The value of this variable will store the number of users
currently logged on.
 
Is This Answer Correct ?    8 Yes 0 No
Anket Dhulekar
 
  Re: I wantr to know, How many number of users logged in to website? can any one answer
Answer
# 5
1. If the website is static pages no data base interaction 
then using static variable we can find out how many users 
loged into the system.
2.If the webpage is data base centric and for accessing  
any page we are retriving data then we can find the max. no 
of connections .
 
Is This Answer Correct ?    0 Yes 0 No
Pradeep
 

 
 
 
Other Advanced Java Interview Questions
 
  Question Asked @ Answers
 
can any one tell me how to learn good coding techniques  3
What is Lock Based Protocol and what is its use? Wipro1
What are different types of layout managers in java.awt package? CA2
suppose i open my yahoo mail.then copy the url. then sign out & close browser.then open browser paste that url on the browser.will i get my mail opened or not? i know it ill not.but how it work.how i create like this type of secure site?  7
Give me simple example of hibernate caching and explain the details of caching????? thanks in adv.  1
Why RMI required an interface?  1
How to determine applet?s height and width?  1
whats is mean by class.forName() whats the return type of class SolutionNET5
What are skeletons and stubs and how they are generated?  2
For an example, if we have some variable in run method, and we created one or more threads. Does all threads will share the same variable or a copy of variable is created for each thread??  1
What is DTD? Wipro2
does j2ee means advanced java  7
What are the ways to define classes that can be run as threads? KPIT1
In real time project when will we use Abstract class. and what are the difference between abstract and interface. Tanla-Solutions3
what is the proxy pattern?  1
What is serialization and de-serialization ?  2
What are the types of data passing mechanisams under JMS specification?  1
In a multitiered application which tier is the browser in? Adobe3
what is heepStored?  1
what is the port number of RMI?  2
 
For more Advanced Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com