Skip to content

Commit

Permalink
Node name
Browse files Browse the repository at this point in the history
  • Loading branch information
kwart committed Oct 30, 2016
1 parent f1fcc79 commit f8c9df7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<url>https://github.com/kwart/secured-webapp-template</url>

<build>
<finalName>counter</finalName>
<finalName>nodename</finalName>

<plugins>
<plugin>
Expand Down
12 changes: 2 additions & 10 deletions src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
@@ -1,10 +1,2 @@
<%@ page language="java" pageEncoding="UTF-8" contentType="text/plain;charset=utf-8"
%><%
Integer requestCount = (Integer)session.getAttribute("requestCount");
if (requestCount == null) {
requestCount = 0;
}
session.setAttribute("requestCount", ++requestCount);
%>Host=<%= System.getProperty("jboss.node.name") %>
Request count=<%= requestCount %>
<%@ page language="java" pageEncoding="UTF-8" contentType="text/plain;charset=utf-8" session="false"
%>Node=<%= System.getProperty("jboss.node.name") %>

0 comments on commit f8c9df7

Please sign in to comment.