{
private static Logger log = Logger.getLogger(JBossTimerServiceFactory.class);
public TimerService createTimerService(TimedObjectInvoker invoker)
{
TimerService timerService = null;
try
{
EJBTimerService service = getEJBTimerService();
ObjectName objectName = new ObjectName(invoker.getTimedObjectId());
org.jboss.ejb.txtimer.TimedObjectInvoker bridge = new TimedObjectInvokerBridge(invoker);
TimerService delegate = service.createTimerService(objectName, null, bridge);
timerService = new TimerServiceFacade(objectName, delegate);
}
catch (Exception e)
{
//throw new EJBException("Could not create timer service", e);