MBeanServerConnection server = getServer();
ObjectName tomcat = new ObjectName("jboss.web:service=WebServer");
try {
server.setAttribute(tomcat, new Attribute(USE_JBOSS, true));
assertTrue((Boolean)server.getAttribute(tomcat, USE_JBOSS));
try
{
URL url = new URL(node1URL+"clusteredservice/EJBServlet");
HttpUtils.accessURL(url);
HttpUtils.accessURL(url);
} catch (Exception e)
{
}
try
{
URL url = new URL(node2URL+"clusteredservice/EJBServlet");
HttpUtils.accessURL(url);
HttpUtils.accessURL(url);
} catch (Exception e)
{
}
}
finally
{
server.setAttribute(tomcat, new Attribute(USE_JBOSS, false));
}