JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Software Design  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to postflat modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 Re:Core J2EE Patterns - Business Delegate [Re:worookie]
im1000



版主

發文: 149
積分: 7
於 2003-10-08 01:35 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Business Delegate 和 Session Facade 的差異
最重要的地方應該是
Business Delegate is POJO
Session Facade is Session Bean

他們可能都不具備著任何商業邏輯
Business Delegate 和 Session Facade 的 method & exception 可能都是一樣
但是為何要分開成兩個 Pattern 呢?

Business Delegate 就像是 ejb container 的唯一介面

而 ejb container 之間互相呼叫的時候
不用再回到 Buessiness Delegate
而直接使用 Session Facade ...

ps:藍色部分有錯,第二版不是這麼建議的 @@", 請看下一篇

所以 Business Delegate 算是給 前端 web 和 後端 ejb 相互溝通的介面
因此我們要在 BusinessDelegate 中呼叫 Service Locator 取得 SessionFacade
將資料傳給指定的 Session Facade ,
接著 Session Facade 會呼叫相關的 Business Component ( bo, dao and etc ... )
得到資料回傳給 Business Delegate ....

對於開發最重要的一個觀點是
當我制定好 Business Interface , BusinessDelegate implements BusinessInterface
就可以讓 web programmer & ejb developer 同時分工開發 ^^~

當然, 唯一會存放在兩個 container 之中的物件
就是 Transfer Object ... 請參閱 TO Pattern 討論 @@"


im1000 edited on 2003-10-08 02:02
reply to postreply to post
話題樹型展開
人氣 標題 作者 字數 發文時間
10568 [精華] Core J2EE Patterns - Business Delegate worookie 12 2003-09-10 01:19
9165 Re:Core J2EE Pattern - Business Delegate ymshin 15 2003-09-10 06:29
9148 Re:Core J2EE Pattern - Business Delegate worookie 324 2003-09-10 06:30
8967 Re:Core J2EE Pattern - Business Delegate worookie 25 2003-09-10 06:31
8971 Re:Core J2EE Pattern - Business Delegate saijone 97 2003-09-11 01:49
9746 Re:Core J2EE Pattern - Business Delegate saijone 743 2003-09-11 02:15
8783 Re:Core J2EE Pattern - Business Delegate popcorny 759 2003-09-11 14:30
8858 Re:Core J2EE Pattern - Business Delegate Biologic 494 2003-09-11 16:23
8763 Re:Core J2EE Pattern - Business Delegate Biologic 404 2003-09-10 11:47
8708 Re:Core J2EE Pattern - Business Delegate popcorny 114 2003-09-10 11:56
8766 Re:Core J2EE Pattern - Business Delegate Biologic 213 2003-09-10 12:19
8695 Re:Core J2EE Pattern - Business Delegate worookie 12 2003-09-24 02:12
8780 Re:Core J2EE Pattern - Business Delegate ymshin 29 2003-09-10 06:32
8720 Re:Core J2EE Pattern - Business Delegate worookie 86 2003-09-10 06:48
8759 Re:Core J2EE Pattern - Business Delegate ymshin 74 2003-09-10 06:56
9191 Re:Core J2EE Pattern - Business Delegate popcorny 413 2003-09-10 11:41
8686 Re:Core J2EE Pattern - Business Delegate popcorny 128 2003-09-10 11:43
9379 Re:Core J2EE Patterns - Business Delegate metavige 424 2003-09-24 23:09
8858 Re:Core J2EE Patterns - Business Delegate 李小e 676 2003-09-25 09:46
8497 Re:Core J2EE Patterns - Business Delegate worookie 51 2003-09-25 13:48
8576 Re:Core J2EE Patterns - Business Delegate 李小e 113 2003-09-26 08:56
9247 Re:Core J2EE Patterns - Business Delegate im1000 878 2003-10-08 01:35
8611 Re:Core J2EE Patterns - Business Delegate im1000 456 2003-10-08 01:58
9350 Re:Core J2EE Patterns - Business Delegate saijone 894 2003-10-09 11:59
11647 Re:Core J2EE Patterns - Business Delegate qing 771 2003-10-09 23:26
8482 Re:Core J2EE Patterns - Business Delegate jini 90 2003-10-09 15:47
8608 Re:Core J2EE Patterns - Business Delegate saijone 186 2003-10-09 21:54
» JWorld@TW »  Software Design

reply to postflat modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8