Problem in using TimerService
843830Dec 24 2005 — edited Apr 25 2006Hi All,
I deployed successfully an EJB Application, but when i tried to trigger any operation from the screens i am getting the following Errors. Actually i am using CreateTimer in one of the operations that is implemented in bean class, which is implementing the interface javax.ejb.TimedObject as follows.
public class TempBean implements SessionBean, TimedObject
{
------
------
public void ejbTimeout(javax.ejb.Timer timer_expired)
{
---------------------
}
public void tempOperation()
{
----------------
javax.ejb.Timer timerobj = TimerService.createTimer(100,null);
}
}
when i remove the operation ejbTimeout() method from the bean class then its working abs fine. But if i include ejbTimeout() then its giving the exception... Pls help me out in resolving this issue. I have also put the entry for ejbTimeout in ejb-jar.xml.
[12/24/05 11:49:35:669 GMT+05:30] 00000173 BeanMetaData E CNTR0080E: EJB Timer Service is not available for EJB implementing the javax.ejb.TimedObject interface: com.ibm.etools.ejb.impl.SessionImpl.
[12/24/05 11:49:35:693 GMT+05:30] 00000173 EJBContainerI E WSVR0068E: Attempt to start EnterpriseBean MCApplication#MCAppBEAN.jar#CLD failed with exception: com.ibm.ejs.container.ContainerException: EJB Timer Service not available for TimedObject EJB: com.ibm.etools.ejb.impl.SessionImpl
at com.ibm.ejs.container.BeanMetaData.<init>(BeanMetaData.java:1294)
at com.ibm.ws.runtime.component.EJBContainerImpl.createBeanMetaData(EJBContainerImpl.java:1914)
at com.ibm.ws.runtime.component.EJBContainerImpl.createDeferredBeanMetaData(EJBContainerImpl.java:4382)
at com.ibm.ws.runtime.component.EJBContainerImpl.access$000(EJBContainerImpl.java:398)
at com.ibm.ws.runtime.component.EJBContainerImpl$3.run(EJBContainerImpl.java:4212)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java(Compiled Code))
at com.ibm.ws.runtime.component.EJBContainerImpl.initializeDeferredEJB(EJBContainerImpl.java:4209)
at com.ibm.ejs.container.HomeOfHomes.getHome(HomeOfHomes.java:342)
at com.ibm.ejs.container.HomeOfHomes.internalCreateWrapper(HomeOfHomes.java:472)
at com.ibm.ejs.container.EJSContainer.createWrapper(EJSContainer.java:4182)
at com.ibm.ejs.container.WrapperManager.faultOnKey(WrapperManager.java:517)
at com.ibm.ejs.util.cache.Cache.findAndFault(Cache.java:495)
at com.ibm.ejs.container.WrapperManager.keyToObject(WrapperManager.java:471)
at com.ibm.ejs.oa.EJSOAImpl.keyToObject(EJSOAImpl.java:552)
at com.ibm.ejs.oa.EJSRootOAImpl.keyToObject(EJSRootOAImpl.java:270)
at com.ibm.rmi.corba.ObjectManager.lookupServant(ObjectManager.java:103)
at com.ibm.CORBA.iiop.ServerDelegate.getServantForRequest(ServerDelegate.java:353)
at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:423)
at com.ibm.rmi.iiop.ORB.process(ORB.java:439)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:1737)
at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2260)
at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:65)
at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:95)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))