SSH 1

SSH

presentation layer: jsp, velocity,freemaker,tapestry

mvc controller layer: core controller,dispatch, user controller,

biz core component: 1, 逻辑上是一个整体 一般是一个事务. 2, 业务逻辑中不应该有数据库的访问 不应该出现Hibernate,JDBC API.

DAO: CRUD, Interface + implementation 解耦不同的数据源

DO: sync with database

 

WEB 服务器

Tomcat/Jetty/Resin

框架

struts+webwork-->struts2

JSF+Tapestry

数据连接

JDBC(SQL-Based) + Hibernate

容器

Spring,SpringMVC,

Tomcat配置文件 conf/server.xml

端口

<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"/>

list for debug

<init-param>
    <param-name>listing<param-name/>
    <param-value>true<param-value/>
</init-param>

全局配置

webapps/manager/WEB-INF/web.xml

auth-constraint

security-constraint

tomcat-users

部署

conf/Catalina/localhost

<Context docBase="G:/publish/codes/01/aa" debug="0" privileged="true">

增加数据源

<Context docBase="G:/publish/codes/01/aa" debug="0" privileged="true">
<Resource name="jdbc/dstest" auth="Container" type="javax.sql.DataSource" url="jdbc:mysql://localhost:3306/javaee" />
</Context>

 

 

 

 

 

 

 

posted on 2012-09-19 10:43  grep  阅读(323)  评论(0编辑  收藏  举报