wood burning stoves*
The moose likes Servlets and the fly likes how you can confirm which application server  user is directed in a MultiClustered environment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how you can confirm which application server  user is directed in a MultiClustered environment " Watch "how you can confirm which application server  user is directed in a MultiClustered environment " New topic
Author

how you can confirm which application server user is directed in a MultiClustered environment

Sudhakar Duraiswamy
Ranch Hand

Joined: Dec 20, 2007
Posts: 43
A client has logged a work request stating that he is unable to access an application hosted within the horizontally clustered production environment. Describe how you can confirm which application server the user is being directed?


Sudhakar
SCJP 5.0 93%| SCWCD (prep. ongoing))
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Look at the properties that the HttpServletRequest object exposes.

You should be able to find the IP for the server and client as well as the name of the server.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Jeff Strike
Greenhorn

Joined: May 19, 2008
Posts: 15
We display this info in the footer for just this reason. The help desk knows to ask what server they're on whenever they have an issue.

Here's part of the code, we use WebLogic:
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how you can confirm which application server user is directed in a MultiClustered environment
 
Similar Threads
Read a file from the client
Tip - WebSphere Clustered Environment - Session Persistence and Java Serialization
Cookies on Tomcat and Apache JServ
JMS JNDI destination lookup
Epractize question?