package org.jboss.test.classloader.interrupt;
import org.jboss.system.ServiceMBeanSupport;
public class InterruptTest extends ServiceMBeanSupport
implements InterruptTestMBean
{
protected void startService() throws Exception
{
log.debug("Starting the TestThread");
TestThread thread = new TestThread(this);
thread.start();
try
{
thread.join();
}
catch(InterruptedException e)
{
log.debug("Was interrupted during join", e);
}
log.debug("TestThread complete, ex="+thread.ex);
if( thread.ex != null )
throw new ExceptionInInitializerError(thread.ex);
}
}