getLog().debug("Enter testSessionPassivationWMaxActive");
getLog().debug(setUrl + ":::::::" + getUrl);
// Create an instance of HttpClient.
HttpClient client = new HttpClient();
clients.add(client);
// Set the session attribute first
makeGet(client, baseURL0_ +setUrl);
// Get the Attribute set; confirm session wasn't deserialized
String attr0 = checkDeserialization(client, baseURL0_ +getUrl, false);
// passivation-min-idle-time is set to 2 secs, so sleep that
// long so our session can be passivated
sleepThread(2100);
// Create enough sessions on server0 to trigger passivation
// assuming that max-active-sessions is set to 10 in jboss-web.xml
for (int i = 0; i < 10; i++)
{
HttpClient newClient = new HttpClient();
clients.add(newClient);
makeGet(newClient, baseURL0_ +setUrl);
makeGet(newClient, baseURL0_ +getUrl);
}