question about delegate pattern

hi guys

i have a question about this pattern. if i have a system with one tier being the web application and one tier being the enterprise application, and the web tier uses delegates to call business services implemented by EJBs to do stuff in the middle tier, each tier will be deployed in a seperate container. the web tier will need to call the delegates to get things done. my question is how i should group the delegates. do i have the delegate as part of the web application package or enterprise package? i would think that since the delegates server as APIs for the enterprise application, and they should be part of the enterprise tier, and for the web app to call, i will just need to jar the delegates as well as ejb info and place it in the classpath of the web app. is this correct?

thanks

[822 byte] By [yu169409a] at [2007-10-3 2:34:01]
# 1

it depends on your need. why are you using delegate in the first place? do you suspect you will replace code on the second container often? then abstract that code away by having one class serve as point of contact into that container. then the first container doesn't need to know anything else about it. (if it's EJB's, POJO's, etc)

rsosborna at 2007-7-14 19:33:01 > top of Java-index,Java Essentials,Java Programming...
# 2
thanks for your response, i thought i would never get any help on this.the delegate pattern seems to be logical to seperate the client from the system. i just don't know how to package the client jar for the web tier.
yu169409a at 2007-7-14 19:33:01 > top of Java-index,Java Essentials,Java Programming...