1 23 24 package com.sun.ejb.base.distributed; 25 26 import com.sun.ejb.spi.distributed.DistributedEJBService; 27 import com.sun.ejb.spi.distributed.DistributedEJBServiceFactory; 28 29 import com.sun.enterprise.admin.event.EjbTimerEvent; 30 import com.sun.enterprise.admin.event.EjbTimerEventListener; 31 import com.sun.enterprise.admin.event.AdminEventListenerRegistry; 32 import com.sun.enterprise.admin.event.AdminEventListenerException; 33 34 40 public class AdminEJBTimerEventListenerImpl 41 extends EJBTimerBaseAction 42 implements EjbTimerEventListener 43 { 44 protected static EjbTimerEventListener ejbTimerEventListener = 45 new AdminEJBTimerEventListenerImpl(); 46 47 static { 48 AdminEventListenerRegistry.addEjbTimerEventListener( 49 ejbTimerEventListener ); 50 } 51 52 public static EjbTimerEventListener getEjbTimerEventListener() { 53 return ejbTimerEventListener; 54 } 55 56 private AdminEJBTimerEventListenerImpl() { 57 super(); 58 } 59 60 public int migrateTimer( EjbTimerEvent event, String fromServerId ) 61 throws AdminEventListenerException 62 { 63 try { 64 return migrateTimers( fromServerId ); 65 } catch( Exception ex ) { 66 AdminEventListenerException adminEx = new AdminEventListenerException(); 67 adminEx.initCause( ex ); 68 throw adminEx; 69 } 70 } 71 72 public String [] listTimers(EjbTimerEvent event, String [] servers) 73 throws AdminEventListenerException 74 { 75 try { 76 return listTimers( servers ); 77 } catch( Exception ex ) { 78 AdminEventListenerException adminEx = new AdminEventListenerException(); 79 adminEx.initCause( ex ); 80 throw adminEx; 81 } 82 } 83 84 } | Popular Tags |