ListenerTagNames.TARGET_SERVICE_CATEGORY_TAG, null);
m_targetServiceName = ListenerUtil.getValue(m_config,
ListenerTagNames.TARGET_SERVICE_NAME_TAG, null);
if (m_targetServiceCategory == null)
throw new ManagedLifecycleException("No target service category defined!");
if (m_targetServiceName == null)
throw new ManagedLifecycleException("No target service name defined!");
Collection<EPR> _targetEprs = RegistryUtil.getEprs(m_targetServiceCategory,
m_targetServiceName);
if (null == _targetEprs || _targetEprs.size() < 1)
throw new ManagedLifecycleException("EPR <"
+ m_targetServiceName + "> not found in registry");
m_serviceInvoker = new ServiceInvoker(m_targetServiceCategory, m_targetServiceName);
} catch (ServiceNotFoundException snfe) {
throw new ManagedLifecycleException("EPR <" + m_targetServiceName + " "
+ m_targetServiceName + "> not found in registry");
} catch (final RegistryException re) {
throw new ManagedLifecycleException("Unexpected registry exception", re);
} catch (MessageDeliverException mde) {
throw new ManagedLifecycleException("EPR <" + m_targetServiceName + " "
+ m_targetServiceName + "> not found in registry", mde);
} catch (ManagedLifecycleException ex) {
throw ex;
}
try {
resolveComposerClass();
} catch (ConfigurationException e) {
// TODO Auto-generated catch block
throw new ManagedLifecycleException("Problem resolving composer class", e);
}
}