beanSet = webBeans.getBeans(destinationType);
Object destComp = null;
if (beanSet.size() > 0) {
Bean destBean = webBeans.resolve(beanSet);
CreationalContext env = webBeans.createCreationalContext(destBean);
destComp
= webBeans.getReference(destBean, destBean.getBeanClass(), env);
}
if (destComp == null)
throw new ConfigException(L.l("{0}: '{1}' is an unknown destination type '{2}'",
loc,
_destinationName,
_destinationType.getName()));
bean.setDestinationValue((Destination) destComp);
beanSet = webBeans.getBeans(ConnectionFactory.class);
Bean factoryBean = webBeans.resolve(beanSet);
CreationalContext env = webBeans.createCreationalContext(factoryBean);
Object comp = webBeans.getReference(factoryBean);
if (comp == null)