1. 配置说明

    1. global.properties

      全局配置文件;

    2. apperror.properties

      应用层错误编码及错误信息定义文件;

    3. database.xml

      数据库配置文件;

    4. module.xml

      应用配置,类似以前的 application.xml,通过 config 对象访问;

    5. log4j.properties

      日志配置文件;

    6. web.xml

      <!-- 页面访问的Servlet,继承ApplicationServlet -->
      <servlet>
      	<servlet-name>agent</servlet-name>
      	<servlet-class>com.ailk.agent.core.common.AgentServlet</servlet-class>
      	<load-on-startup>0</load-on-startup>
      </servlet>
      
      <!-- Http接口的Servlet,可支持自定义的IHttpVerify -->
      <servlet>
      	<servlet-name>httptran</servlet-name>
      	<servlet-class>com.ailk.app.AppHttpServlet</servlet-class>
      	<init-param>
      		<param-name>verify</param-name>
      		<param-value>com.ailk.agent.core.common.AgentHttpVerify</param-value>
      	</init-param>
      	<load-on-startup>1</load-on-startup>
      </servlet>
      
      <servlet-mapping>
      	<servlet-name>agent</servlet-name>
      	<url-pattern>/agent</url-pattern>
      </servlet-mapping>
      
      <servlet-mapping>
      	<servlet-name>httptran</servlet-name>
      	<url-pattern>/httptran/*</url-pattern>
      </servlet-mapping>
      
      <session-config>
      	<session-timeout>1</session-timeout>
      </session-config>
      
      <welcome-file-list>
      	<welcome-file>agent</welcome-file>
      </welcome-file-list>
      
    7. [project].application

      engine-class="com.ailk.app.AppEngine"

      Engine 还是使用 AppEngine;

      <property name="org.apache.tapestry.visit-class">com.ailk.app.AppSession</property>

      Visit 对象使用 AppSession;