Topic: 瞧,我们组的Web应用开发方式 |
Print this page |
1.瞧,我们组的Web应用开发方式 | Copy to clipboard |
Posted by: qfvszy Posted on: 2004-10-04 10:54 我们开发小组5个人,一个组长; 用MVC方式开发WEB应用; 使用WinCVS进行版本控制团队开发; Ant来实现编译发布; 应用服务器采用Tomcat,使用的时候(Apache和Tomcat整合); 数据库是Sybase和Oracle,采用连接池; 报表使用的是MingReport; 工程开发阶段:需求分析,设计,编码,测试,试运行,正式运行; 一个工程项目差不多50W,6个人,6个月来搞定。 ---------------------------------- 我们的MVC实现是这样的: MVC模式:jsp,html充当Vidw(视图);servlet充当controler(控制器);class类充当Module(模块); jsp通过提交form表单,或者带参数的url请求sevlet;servlet里doPost或者doGet方法根据参数调用Module类里面的方法进行添加、删除、更新、查询数据的操作,然后用forward方法或者response.sendRedirect返回到jsp页面,这里servlet只控制流程,Class类里面处理业务逻辑; servlet里面request.setAttribute()保存数据,在jsp页面request.getAttribute()得到数据。 我们的工程中封装了一些基础的工具类比如说(数据库的连接,查询添加删除更新,页面的显示等等),具体的项目也提炼出一些公共的业务逻辑封装为不同的类。有整理较完善的js库和css样式表。 在我们的开发中,差不多是每个jsp页面对应一个servlet和module,当然在一个jsp页面很多时候实现的添加、删除、更新、查询复合功能。 只有查询数据的时候才用写sql,插入、更新、删除都是不用写sql,只需要绑定form中的字段和表中的字段就可以了,这里我们封装了几个类来实现的。 我想说的是:在我们的工程开发里面没有用到Struts,spring,hibernate,EJB等这些东西,而我很希望在我们开发多一些新的东西或者提高我们的技术含量,但是又不知道该怎么办,迷惑是否我们需要采用一些FrameWork,我们的开发算是一种么? 恳请各位有项目开发经验的大侠给予解惑,不胜感激!!! |
2.Re:瞧,我们组的Web应用开发方式 [Re: qfvszy] | Copy to clipboard |
Posted by: nothing Posted on: 2004-10-04 12:14 对于小项目,我是很支持你们这种开发方式的. |
3.Re:瞧,我们组的Web应用开发方式 [Re: qfvszy] | Copy to clipboard |
Posted by: jameszhang Posted on: 2004-10-04 20:23 你说的用这些,STRUTS不是很适合吗?其他的还要根据你的需求定,呵呵 |
4.Re:瞧,我们组的Web应用开发方式 [Re: jameszhang] | Copy to clipboard |
Posted by: nothing Posted on: 2004-10-04 22:58 http://community.csdn.net/Expert/topic/3322/3322157.xml?temp=5.511111E-02 |
5.Re:瞧,我们组的Web应用开发方式 [Re: nothing] | Copy to clipboard |
Posted by: ringayumi Posted on: 2004-10-05 00:22 I enjoy your solution. ^_^ Because I do that as you. If you want to increase some technology , I suggest that you can learn some about the "Design pattern" , it can help you! ^_^ You can go to visit the Oreilly's site , it will publish the Head First Design patterns! |
6.Re:瞧,我们组的Web应用开发方式 [Re: qfvszy] | Copy to clipboard |
Posted by: qfvszy Posted on: 2004-10-05 07:37 对于Struts我个人摸索一些,总感觉如果用了在controle做的太复杂而且美工也不是太容易,所以没有选用。 而且我们的系统有个毛病就是太慢,我们在sql方面做了一些优化,连接池方面,Tomcat和数据库放在不同的Server上面可是速度却没有大的起色,我们并发用户一般不超过5个,每个servlet都实现SingleThreadModel。 请问用了hibernate能否有效的解决速度慢的问题么? |
7.Re:瞧,我们组的Web应用开发方式 [Re: qfvszy] | Copy to clipboard |
Posted by: ww1ww1 Posted on: 2004-10-05 10:05 qfvszy wrote: The last question is actually I eagerly want to ask. Somebody help! |
8.Re:瞧,我们组的Web应用开发方式 [Re: qfvszy] | Copy to clipboard |
Posted by: wes109 Posted on: 2004-10-05 12:27 qfvszy wrote: 这么少的并发,机器资源应该不是问题,大多是程序的问题,且大多在db上,具体可以根据两台机器的资源占用去判断 1、是否连接池中存在数据库连接泄露 2、是否存在效率极差的sql 3、程序中是否存在内存泄露,或有些资源没有及时释放 我觉得,hibernate对你帮助不大,还是好好检查、优化一下你的sql吧 另外,开发b/s系统,选用一个mvc framework是很有帮助的 不建议在生产环境下使用tomcat,玩具而已,大并发一压它就over了 |
9.Re:瞧,我们组的Web应用开发方式 [Re: qfvszy] | Copy to clipboard |
Posted by: lot1 Posted on: 2004-10-06 00:52 1. You can try "Spring" solution. 2. Performance issue - not due to any solution but your code and/or settings "must" have problem, even on a single machine this ("我们并发用户一般不超过5个") shouldnot be a problem at all! 3. 不建议在生产环境下使用tomcat,玩具而已,大并发一压它就over了 totally disagree! I did a few commerical projects based on Tomcat (version 3.x+) for the past few years, not perfomance problem at all (from few thousands users to millions, concurrency at peak hour is definitely > 50). Tomcat is also used as embeded Web container for several famous application servers, I think you know. |
10.Re:瞧,我们组的Web应用开发方式 [Re: qfvszy] | Copy to clipboard |
Posted by: floater Posted on: 2004-10-06 02:38 question regarding to #3. What connection pool are you using with tomcat? Do you have load balancer, server clustering? Do you have any firewall, SSO setting in front of them? Which specific famous application servers are embedded with tomcat? Apparently you are not using JTA, JCA, JMS, EJB, etc, I assume. Correct me if I am wrong. Are you using apache http server or similar in the front for the static resources? You meaning concurrent hits >50? for how long? What's the total hit per day, per month, in average? How long can the servers be up continuously? What's the throughtput per request? Tomcat was originally the RI, but I expect over the time it could get improvements on performance. So I just ask some questions to compare with commercial servers, like weblogic, websphere, etc. |
11.Re:瞧,我们组的Web应用开发方式 [Re: qfvszy] | Copy to clipboard |
Posted by: floater Posted on: 2004-10-06 02:44 As for the first post, the solution is simple - Spring, black and white. |
12.Re:瞧,我们组的Web应用开发方式 [Re: qfvszy] | Copy to clipboard |
Posted by: qfvszy Posted on: 2004-10-06 08:49 thanks for all of your heartly help and suggestion,best regards to U! |
13.Re:瞧,我们组的Web应用开发方式 [Re: qfvszy] | Copy to clipboard |
Posted by: lot1 Posted on: 2004-10-08 23:02 floater wrote: |
14.Re:瞧,我们组的Web应用开发方式 [Re: qfvszy] | Copy to clipboard |
Posted by: floater Posted on: 2004-10-08 23:34 glad to know tomcat is getting better, one more tool to play, . Another cheap but good server is resin. yea, asp/php is comparable to jsp/servlet. thanks. |
15.Re:瞧,我们组的Web应用开发方式 [Re: qfvszy] | Copy to clipboard |
Posted by: mozhenghua Posted on: 2004-10-11 09:40 why so small a project needs 50w so high????????????????? |
16.Re:瞧,我们组的Web应用开发方式 [Re: qfvszy] | Copy to clipboard |
Posted by: cycloneduck Posted on: 2004-11-21 12:32 The same felling!!!I thing the project is so simple but needs so high??? |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |