Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Architecture & Framework » Spring Framework  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 关于jpetstore源码中看到的domain,service的问题..
momocha





发贴: 98
积分: 10
于 2005-11-23 13:40 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我看原码分成了四个目录dao,web,domain,service四个目录,前两个很容易明白,但domain,service这两上的划分依据和想法不太明白.特别是domain里边的类比较杂乱.


作者 Re:关于jpetstore源码中看到的domain,service的问题.. [Re:momocha]
yeafee

javaholder



发贴: 42
积分: 1
于 2005-11-23 16:55 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
期待有谁能能够给出清楚的说明!!!
momocha,你看的是Spring作的web tier还是struts作的web tier呢?能否把你看的过程写出来供大家学习呢。正在看Spring的,只是遇到不少困难呀.Sad.希望自己能赶快把它整理出来。

看Spring附带jpetstore(Spring as web tier)登入过程,请指点
http://www.cjsdn.net/post/view?bid=20&id=163530&sty=1


yeafee edited on 2005-11-23 17:01

三人行,必有我师焉
敏而好学,不耻三问
学而时习之,不思则罔
..........
作者 Re:关于jpetstore源码中看到的domain,service的问题.. [Re:momocha]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2005-11-24 02:58 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
domain is the central business tier. service package is more like a web package, just a way to expose these services remotely, so that users could use the web interfaces, or the webservice interfaces(like amazon's webservices).


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler, Refactoring - Improving the Design of Existing Code
作者 Re:关于jpetstore源码中看到的domain,service的问题.. [Re:momocha]
momocha





发贴: 98
积分: 10
于 2005-11-25 19:36 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
谢谢floater,我还是不太明白加一层Spring究竟有啥些作用,对象之间的解藕,也就是对象之间的依整由配置文件注入,还有事务管理(这个具体的是指些什么内容),能不能说明一下!


作者 Re:关于jpetstore源码中看到的domain,service的问题.. [Re:momocha]
momocha





发贴: 98
积分: 10
于 2005-11-25 21:38 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
还有一个问题,这个Demo(iBatis的也一样)不支持汉字,我加过滤器还有改每个jsp页面的编码都不行..不知道为啥..


作者 Re:关于jpetstore源码中看到的domain,service的问题.. [Re:momocha]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2005-11-27 05:38 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
加一层Spring究竟有啥些作用,对象之间的解藕,也就是对象之间的依整由配置文件注入 - you should read Rod Johnson's books, because it's a very large topic, hard to say in a few sentences.

事务管理 - e.g., a group of database operations work atomically, i.e., either all sucessful or all failed.

Chinese encoding - search here for answers, I am not an expert on i18n.



"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler, Refactoring - Improving the Design of Existing Code
作者 Re:关于jpetstore源码中看到的domain,service的问题.. [Re:momocha]
momocha





发贴: 98
积分: 10
于 2005-11-29 11:27 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
好多文档都提到那本<<j2ee设计开发指南>>这本书还值得看一看吗,还是直接看最新的那本without ejb就可以了..


作者 Re:关于jpetstore源码中看到的domain,service的问题.. [Re:momocha]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2005-11-29 11:52 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
That's still one of the best books I've ever read. It also helps a lot for reading Rod's other books because it's a more comprehensive book than others, it covers a lot of practical consideration, not too simplified to a meaningless case.

The other books are more of solution books, given the problems, esp ejbs in 90% cases are not appropriate.

This is my original comment back in 2003:
http://www.cjsdn.net/post/view?bid=20&id=30105&tpg=1&ppg=1&sty=1&age=0#30105


floater edited on 2005-11-29 12:03

"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler, Refactoring - Improving the Design of Existing Code

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   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