首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Ajax >

Mule 3.4.0中对Ajax的运用

2013-08-26 
Mule 3.4.0中对Ajax的应用?????mule配置文件:??测试: public static void main(String[] args){try {Serve

Mule 3.4.0中对Ajax的应用

?

?

?

?

?

mule配置文件:

?

?

测试:

 public static void main(String[] args)  {        try {            Server httpServer = new Server(8090);            String configFile = "mule-ajax-config.xml";            String[] configFileArr = new String[] {configFile };            MuleContextFactory muleContextFactory = new DefaultMuleContextFactory();            MuleContext context = muleContextFactory                    .createMuleContext(new SpringXmlConfigurationBuilder(configFileArr));                  Context c = new Context(httpServer, "/", Context.SESSIONS);            c.addServlet(new ServletHolder(new MuleAjaxServlet()), "/ajax/*");            c.addEventListener(new MuleServletContextListener(context, null));            httpServer.start();        } catch (Exception e) {            e.printStackTrace();        }            }}

?

热点排行