Integer easyBeansServerID = easyBeansJobDetailData.getEasyBeansServerID();
String containerID = easyBeansJobDetailData.getContainerId();
String factoryName = easyBeansJobDetailData.getFactoryName();
// Get the EasyBeans embedded instance
EZBServer embedded = EmbeddedManager.getEmbedded(easyBeansServerID);
// Get the container object
EZBContainer container = embedded.getContainer(containerID);
// get the factory
Factory<?, ?> factory = container.getFactory(factoryName);
// Ensure operation state is valid
OperationState operationState = factory.getOperationState();
if (DEPENDENCY_INJECTION == operationState || LIFECYCLE_CALLBACK_INTERCEPTOR == operationState
|| AFTER_COMPLETION == operationState) {
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