Bayeux bayeux = (Bayeux)config.getServletContext().getAttribute(Bayeux.ATTRIBUTE);
if (bayeux==null)
{
_config.getServletContext().log("No "+Bayeux.ATTRIBUTE+" initialized");
throw new UnavailableException(Bayeux.ATTRIBUTE);
}
String url=_config.getInitParameter(Oort.OORT_URL);
if (url==null)
{
_config.getServletContext().log("No "+Oort.OORT_URL+" init parameter");
throw new UnavailableException(Oort.OORT_URL);
}
Oort oort= new Oort(url,bayeux);
_config.getServletContext().setAttribute(Oort.OORT_ATTRIBUTE,oort);