首页 | 互联网 | IT动态 | IT培训 | Cisco | Windows | Linux | Java | .Net | Oracle | 软件测试 | C/C++ | 嵌入式开发 | 存储世界 | 服务器
网络设备 | IDC | 安全 | 求职招聘 | 数字网校 | 网页设计 | 平面设计 | 技术专题 | 电子书下载 | 教学视频 | 源码下载 | 搜索 | 博客 | 论坛
中国IT实验室Linux频道
中国IT教育
Google
首页 资讯动态 认证考试 新手入门 核心技术 高级技术 J2EE J2ME Java&XML 开源技术 其他技术 RSS订阅 论坛 专题
您现在的位置: 中国IT实验室 >> Java >> J2EE >> J2ee核心 >> 正文

Java企业应用开发实践TOP10


  1.使用MVC.
  2. 在每一层建议写自动测试代码;
  3. 根据规范开发,不要依赖具体应用服务器的实现;
  4. 从一开始考虑J2EE的安全问题;
  5. 团队成员负责自己熟悉的模块开发;
  6. 使用Session Facades,如果使用EJB;
  7. 使用Stateless Session Bean, 尽量少用Stateful SessionBean;
  (上次GavinKing提出了相反的观点,可以查看GavinKing的Blog;Stateful Session Beans Rock http://blog.hibernate.org/cgi-bin/blosxom.cgi/2004/04/);
  8. 使用容器管理事务;
  9. 建议使用JSP作为表现层的首要技术选择。
  10.如果使用HttpSession,不要什么东西都往里面放,只有确实需要的对象。
  12. 使用CMP Entity生产效率高,相对于ORM产品.
  
  我的观点:
  1、使用MVC确实不错,尤其对于项目大,而且以后修改方便。
  2、确实是很好的建议,目前没有在实际工作中没有实践过,零碎地写过
  6、7、Spring是个不错的候选者,简单易用,易测试。
  9、很好的建议,也许Tapestry很好,很多项目使用JSP已经够用;
  12、不同意。是不是想要推销IBM Websphere,呵呵。
  其他的不了解,如果大家由这方面的经验,和大伙说说吧。
  
  翻译的不好,原文档如下:
  java代码:
  
  The best practices
  
  1. Always use MVC.
  2. Apply automated unit tests and test harnesses at every layer.
  3. Develop to the specifications, not the application server.
  4. Plan for using J2EE security from Day One.
  5. Build what you know.
  6. Always use Session Facades whenever you use EJB components.
  7. Use stateless session beans instead of stateful session beans.
  8. Use container-managed transactions.
  9. Prefer JSPs as your first choice of presentation technology.
  10. When using HttpSessions, store only as much state as you need for the current business transaction and no more.
  11. In WebSphere, turn on dynamic caching and use the WebSphere servlet caching mechanism.
  12. Prefer CMP Entity beans as a first-pass solution for O/R mapping due to the programmer productivity benefits.
  
【责编:admin】

中国IT教育

相关产品和培训
文章评论
 友情推荐链接
 认证培训
 专题推荐

 ·关于Java框架技术专题
 ·XML全攻略技术专题
 ·JAVA开源技术介绍专题
 ·Java嵌入式开发之J2ME技术专题
 ·超前体验 Oracle 11g的5个新特性…
 ·揭密使用VB.NET的五个实用技巧
 ·Oracle和SQL Server常用函数对比专题…
 ·展现C#世界 C#程序设计专题…
 ·Java入门 Tomcat的配置技巧精华专题…
 ·Oracle RMAN物理备份技术详解…
 今日更新
 社区讨论
 博客论点
 频道精选
 Java 频道导航