throw new IllegalStateException("The getTimer() method cannot be called within the operation state '"
+ operationState + "'.");
}
// Get the components registry
EZBComponentRegistry registry = embedded.getComponentManager().getComponentRegistry();
// Get the timer components
List<TimerComponent> timerComponents = registry.getComponents(TimerComponent.class);
// Find the quartz component in this list
if (timerComponents == null || timerComponents.size() == 0) {
throw new EJBException("Cannot get the timer object as no timer component have been found on the EasyBeans server");
}