JiveJdon Community Forums
在线148人   首页   主题总表   培训咨询   精华   查搜   注册    登陆
首页 » 论坛 » J2EE/JavaEE/JEE/EJB/JSF等技术讨论
???en_US.forumThreadPrev.name??? 上一主题
  Go back to the topic 返回本主题   Go back to the topic listing返回主题列表
???en_US.forumThreadNext.name??? 下一主题
Go 总共有 1 回复 / 1
 发表新帖子   回复该主题贴
X.Underset

悄悄话
发表文章: 50
注册时间: 2004年11月02日 19:56
to Banq 关于你的第八章的一些疑问 2007年06月01日 22:52 到本帖网址 加入本帖到收藏夹 发送到手机 回复该主题
标签列表
378页
8.5.1 DAO模式
中提到:"不推荐在EJB的Session Bean中直接使用JDBC调用语句,而是通过DAO模式来间接地访问数据源。"

能不能说说为什么?
是因为藕和方面的考虑还是性能方面的

还有就是那个批量框架:我个人十分喜欢你所设计的这个框架;但有个小问题:
您是先找出所有符和条件的记录然后再在记录中选出十条来返回;
如果记录有上千万条或是更多的话就算是只返回记录的ID,在那返回所有记录的一段时间速度肯定会受影响;就这方面Banq有何想法?
shanghaimin

悄悄话
发表文章: 45
注册时间: 2007年05月29日 04:44
re:to Banq 关于你的第八章的一些疑问 2007年06月02日 20:05 到本帖网址 加入本帖到收藏夹 发送到手机 回复该主题
I prefer to explain that in an engineering thought.
how to make IT project successful?
1. easy to test to make your application robust

so what does that mean easy?
you write a "main" and then you know if your piece of code is correct or not.
so EJB is definitely not making you easy to test business logic. because you must package them,deploy them,connect to DB etc. then make a simple test. is it easy?
conclusion: each fancy technology in java should used as a facade if that cannot bring a simple test.

2. do u know the layer theory?
one abstract layer more can trade off more generosity in application.
check JVM, why can windows, linux,unix can serve java application. because jvm is the layer between them. that is why java partially slow.
check ODBC and JDBC, why database can connect to different OS? same reason.
check google, why they bought mozilla firefox, because that creates one layer more between all server side applications created by google and the MS monopolied OS? that is to say, if MSSOFT tries to update windows, the google just needs to update their browser APIs and all the rest of the applications dont need a single touch.

3. OO design is not ur project purpose. it is one of the way to well solve some problems during ur project. but mainly it is client and business-oriented, more in the macro level. because the client requirement changes all the time, that is why application needs to be flexible and dynamic.

but it doesnt create sth new or some core technology.
这个主题有 1 回复 / 1Go
???en_US.forumThreadPrev.name??? 上一主题
  Go back to the topic 返回本主题   Go back to the topic listing返回主题列表    返回页首返回页首
???en_US.forumThreadNext.name??? 下一主题
热点TAG: AOP cache 缓存 DDD EJB 集群 设计模式 Hibernate IOC JiveJdon OO RBAC Seam Spring Struts
正在读取,请等待...
google yahoo 新浪ViVi 365Key网摘 天极网摘 CSDN网摘 添加到百度搜藏 POCO网摘 博采网摘
查询本论坛内 回复超过的热门帖子
     回复该主题贴
标题
 
粗体 斜体 下划线 插入图片 插入代码 插入url链接 插入附件
内容
 

手机阅读 add to google add to yahoo
解惑之道在J道 ,打造中国最具影响力的的企业软件社区
OpenSource JIVEJDON v3.0 Powered by JdonFramework Code © 2002-08 jdon.com
anti spam