Maya "I plan to use business delegate in the middle tier between my action classes and session facades. Can I have one class which acts as a delegate and which can interface with multiple session facades ?"
My answer: Business delegate is implemented as helper java class.
There is no guideline that states that an enterprise component should have only one associated business delegate.
Usually a component must support a number of use cases and hence may have groups of responsibilities that if performs.
It is up to the architect to decide if the groups should be assigned to multiple business delegates or one business delegate.
Maya, "Also, can anyone send me a sample implementation of a business delegate ?"
My answer: You can find some implementation in the java Sun site for business delegate.
Or just search for business delegate using Google and you will finds some.
Or go to IBM developerWork site and you will find some lessons and tutorial implementing this pattern too.
Thanks,
Ashraf Galal
(416)804-8359
>From: Maya menon <maya_java@YAHOO.COM>
>Reply-To: An interest list for Sun Java Center J2EE Pattern Catalog <J2EEPATTERNS-INTEREST@JAVA.SUN.COM>
>To: J2EEPATTERNS-INTEREST@JAVA.SUN.COM
>Subject: Business delegate
>Date: Tue, 19 Jul 2005 11:27:24 -0700
>
>Question about business delegate.
>
>I plan to use business delegate in the middle tier between my action classes and session facades. Can I have one class which acts as a delegate and which can interface with multiple session facades ?
>
>Also, can anyone send me a sample implementation of a business delegate ?
>
>Thanks,
>
>
>---------------------------------
> Start your day with Yahoo! - make it your home
page
>
>====================================================================
>Companion Site: http://www.corej2eepatterns.com
>J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns
>List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html
>Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@java.sun.com