1 22 package org.jboss.test.classloader.interrupt; 23 24 import org.jboss.system.ServiceMBeanSupport; 25 26 33 public class InterruptTest extends ServiceMBeanSupport 34 implements InterruptTestMBean 35 { 36 37 protected void startService() throws Exception 38 { 39 log.debug("Starting the TestThread"); 40 TestThread thread = new TestThread(this); 41 thread.start(); 42 try 43 { 44 thread.join(); 45 } 46 catch(InterruptedException e) 47 { 48 log.debug("Was interrupted during join", e); 49 } 50 log.debug("TestThread complete, ex="+thread.ex); 51 if( thread.ex != null ) 52 throw new ExceptionInInitializerError (thread.ex); 53 } 54 } 55 | Popular Tags |