[jboss-cvs] JBossAS SVN: r81174 - projects/cluster/varia/sessionstress/web.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Nov 17 12:50:58 EST 2008


Author: bela at jboss.com
Date: 2008-11-17 12:50:58 -0500 (Mon, 17 Nov 2008)
New Revision: 81174

Modified:
   projects/cluster/varia/sessionstress/web/index.jsp
Log:
Return the jvmRoute as a response header

Modified: projects/cluster/varia/sessionstress/web/index.jsp
===================================================================
--- projects/cluster/varia/sessionstress/web/index.jsp	2008-11-17 16:42:59 UTC (rev 81173)
+++ projects/cluster/varia/sessionstress/web/index.jsp	2008-11-17 17:50:58 UTC (rev 81174)
@@ -3,11 +3,17 @@
 
 <%!
     String hostname="n/a", user_name="n/a";
+    String nodeName = System.getProperty("jboss.jvmRoute");
 %>
 
 <%
     //    response.setHeader("Cache-Control", "no-cache");
 
+    response.setHeader("X-ClusterNode", nodeName);
+
+    // Touch the session to ensure cookie is sent
+    session.getId();
+
     String key=request.getParameter("key"), val=request.getParameter("value");
     if(key != null) {
         if(val == null || val.trim().length() == 0) {




More information about the jboss-cvs-commits mailing list