org.apache.log4j.Category.getRoot().setLevel(Level.INFO);
//org.apache.log4j.Category.getInstance("org.jboss.remoting").setLevel(XLevel.TRACE);
org.apache.log4j.Category.getInstance("org.jboss.remoting").setLevel(Level.DEBUG);
org.apache.log4j.Category.getInstance("org.jgroups").setLevel(Level.FATAL);
final LeaseTestServer server = new SocketLeaseTestServer();
try
{
server.setupServer();
try
{
new Thread(new Runnable()
{
public void run()
{
server.testForError();
}
}).start();
Thread.currentThread().sleep(60000);
server.isRunning = false;
}
catch (InterruptedException e)
{
e.printStackTrace();
}
server.tearDown();
}
catch (Exception e)
{
e.printStackTrace();
}