How to get total current sessions in Struts?

Thanks in advance.
thungrac01Asked:
Who is Participating?
 
jarasaConnect With a Mentor Commented:
Look in this one:

http://www-306.ibm.com/software/webservers/appserv/doc/v40/ae/infocenter/was/06060012.html

Servlet session manager.
Data for this category reports usage information for HTTP sessions. Examples include the total number of sessions being accessed, the average amount of time it takes for a session to perform a request, and the average number of concurrently active HTTP sessions.

Javier
0
 
jarasaCommented:
Which server are you using?
Normally that should be done by server console maintenance.
Javier
0
 
thungrac01Author Commented:
I use WebSphere 5.0
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
jarasaCommented:
Well Weblogic has a console where you can see all that info I bet Websphere does have one too, let me check it out.

Javier
0
 
jarasaCommented:
Not sure if this is what you need, sorry I'm a WebLogic User.

http://www-306.ibm.com/software/webservers/appserv/doc/v40/ae/infocenter/was/06060001.html#nav

Javier
0
 
searlasCommented:
I guess it should be stated: struts has no capability for this.  You would need to write your own bean tailored to your app server to find the number of sessions and then you could use struts to output the value (if you want.)

0
 
rrzConnect With a Mentor Commented:
See my accepted solution  here  
http://www.experts-exchange.com/Web/Web_Languages/JSP/Q_20514811.html   
Be sure to read kenneth's final suggestions
0
 
girionisCommented:
Sorry to searlas. Your answer is also valid but I couldn't do a three-way split on a 50 points solution.
0
 
rrzCommented:
IMHO  My link pointed to the only solution.  rrz
0
 
jarasaCommented:
My vote goes to give the points to rrz, I feel bad for the other one you gave me the points and I said it should be deleted, but if not is shoulded been a split, so you can acept this one to rrz now. Girionis.

Javier
0
 
searlasCommented:
rrz, IMHO your solution (that entire thread) has nothing to do with Struts.
0
 
girionisCommented:
rrz@871311, I believe jarasa's and searlas' comments are also valid.

jarasa's because he provided a websphere specific solution, which is still valid since the asker said he is using websphere.

searlas' since he stated that there is no default capability of doing it and that the asker would have to write his own library.

jarasa, if you still believe that you are not worth the points I can ask a moderator to do a split between rrz and searlas.
0
 
jarasaCommented:
go ahead girionis
But I didn't say I worth THIS points but THIS ones :c))
http://www.experts-exchange.com/Web/Web_Languages/JSP/Q_20930071.html#11215942
Javier
0
 
girionisCommented:
The user accepted your comment anyway :)
0
 
jarasaCommented:
opps I thought it was EE who did, well then do whatever here, is ok for me, give it to rrz and searlas
Javier
0
 
rrzCommented:
>rrz, IMHO your solution (that entire thread) has nothing to do with Struts.  
I agree, searlas.  
But IMHO this question has nothing to do with Struts. Struts is a framework which sits on top of the app server. It is the app server which is capable of counting HttpSessions (HttpSessionListener).
You posted,
>I guess it should be stated: struts has no capability for this.  

This is my opinion, but I will accept the decision of the majority. I am only here to learn.
rrz
0
 
jarasaCommented:
Well that's why I say my answer has nothing to solve on the question title, but it's solves the problem I guess, the strictly asnwer to the question should be searlas, as long as the user didn't accept any.

Searlas said thre truth: You can't get user sessions in Struts, but
rrz gave a code solution: to get it on any webserver.

mine just was to point him to the server console, so give it to them girionis, pls.

hehe.

Javier
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.