1 6 7 package org.jfox.ejb.timer; 8 9 import java.lang.reflect.Method ; 10 import javax.ejb.EJBException ; 11 import javax.ejb.TimedObject ; 12 import javax.ejb.Timer ; 13 14 17 18 public class TimedObjectMethod { 19 public static final Method TimeOut; 20 21 static { 22 try { 23 TimeOut = TimedObject .class.getMethod("ejbTimeout", new Class []{Timer .class}); 24 } 25 catch(Exception e) { 26 e.printStackTrace(); 27 throw new EJBException (e); 28 } 29 }; 30 31 public static void main(String [] args) { 32 33 } 34 } 35 | Popular Tags |