%@page contentType="text/html"
import="java.util.*,org.jboss.test.cluster.web.Person"
%>
<%
String str = session.getQueryString();
int MAX = 0;
if(str == null) {
throw new RuntimeException("setPerfSession: invalid query string.");
}
MAX = Integer.parseInt(str);
// Note: Don't change these. They are hard-coded in the test case as well!!
String id=request.getSession().getId();
session.setAttribute("TEST_ID",id);
// Set up session for perf test. Idea is to have a big hashmap per
// session attribute.
for(int i=0; i < MAX; i++) {
Person ben=new Person("Let's make the person object a little bit bigger",
i);
id = String.valueOf(i);
session.setAttribute(i, ben);
}
%>
<%=id%>
<%=application.getServerInfo()%>:<%=request.getServerPort()%>