public boolean hasTimerService(String jndi)
{
try
{
EJBTimerService service = EJBTimerServiceLocator.getEjbTimerService();
String name = Container.BASE_EJB_CONTAINER_NAME + ",jndiName=" + jndi;
ObjectName containerId = ObjectNameConverter.convert(name);
return service.getTimerService(containerId, ctx.getPrimaryKey()) != null;
}
catch(Exception e)
{
throw new EJBException("Unable to verify whether entity bean has a timer service associated", e);
}