public static void initGlobal() throws Exception {
// parent context
createBeanFactory("services.xml");
// sub context - web context������ͼ����ע��request�ȶ���������parent���Ѿ����ڣ�������
subFactory = new XmlWebApplicationContext();
subFactory.setConfigLocation("empty.xml");
subFactory.setServletContext(new ServletRunner(new File(srcdir, "WEB-INF/web.xml"), "").newClient()
.newInvocation("http://localhost/servlet").getServlet().getServletConfig().getServletContext());
subFactory.setParent((ApplicationContext) factory);
subFactory.refresh();