List list = config.getJiplet();
Collections.sort(list, new Comparator()
{
public int compare(Object obj1, Object obj2)
{
JipletConfig o1 = (JipletConfig) obj1;
JipletConfig o2 = (JipletConfig) obj2;
return o1.getStartupOrder() - o2.getStartupOrder();
}
});
Iterator iter = list.iterator();
while (iter.hasNext() == true)
{
JipletConfig jiplet = (JipletConfig) iter.next();
try
{
initJiplet(jiplet);
}
catch (Exception e)
{
JipletLogger.fatal("Error starting context "
+ jiplet.getJipletName() + "\n" + "Exception: "
+ e.getClass().getName() + ": " + e.getMessage() + "\n"
+ JipletLogger.getStackTrace(e));
}
}
}