question about design pattern - business delegate: repost

hi guys

i have got a question to ask about the delegate pattern. usually, we use it to decouple between presentation client and businessservice tiers. for instance, the service tier has an session ejb, and delegate wrapps the ejb. and the web client calls delegate to access service. is the delegate only used by the presentation tier? within the service tier, we can have many ejbs that work together to get tasks done. do we still use delegates in the service tier? what is ur suggestion? thanks

[510 byte] By [yu169409a] at [2007-10-3 4:40:59]
# 1
You will have a Service interface, where Service Imps are DefaultService and RemoteService. DefaultService can run locally, and RemoteService could be deployed as a Session EJB that wrap a DefaultService and delegates to it.
jfreebsda at 2007-7-14 22:45:02 > top of Java-index,Other Topics,Patterns & OO Design...
# 2

thanks, but i don't think i follow what u said.

bascially i was asking if it was still a good idea to use delegates to communicate between ejbs the same way presentation tier calls service tier. i.e. SessionEJBA calls DelegateB to access SessionEJBB. or SessionEJBA calls SessionEJBB directly including the lookup, etc.

yu169409a at 2007-7-14 22:45:02 > top of Java-index,Other Topics,Patterns & OO Design...
# 3
Hi,Please send me the sample code for Business Delegate pattern without using EJBs.My id is jpb.java@gmail.com
JunITa at 2007-7-14 22:45:02 > top of Java-index,Other Topics,Patterns & OO Design...