Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » J2EE Pattern »

Re: Pattern BusinessDeligation

Rajesh Nair

2003-07-31


I completely agree with James.A business delegate is used to delegate ur request from the servlet/jsp to the appropriate session bean.It is an intermediary between a client and the session facade(if u have one) to facilitate decoupling of the client from the ejb layer.By packaging the business delegate with the ejb jar u are completely defeating the use of the pattern..Patterns arent used just for the heck of using them.Before applying any pattern u should be doing 3 primary things-
1. Understand your problem.
2. Understand the pattern
3. Understand how the pattern solves ur problem.
 
Regards
-Rajesh
-----Original Message-----
From: BOWMAN, James [mailto:James.Bowman@LONDON.SEMA.SLB.COM]
Sent: Thursday, July 31, 2003 7:03 PM
To: J2EEPATTERNS-INTEREST@JAVA.SUN.COM
Subject: Re: Pattern BusinessDeligation

Actually, you should distribute the business delegate, the remote interface and the home interface with each client.  The business delegate is designed to act as a local proxy for the remote EJB.  This is the main motivation of the pattern.   If you placed the business delegate on the server, not only would you be defeating the point of the pattern but the code would not work because the business delegate does not support RMI and so cannot be used remotely from the client.
-----Original Message-----
From: Giovani Salvador [mailto:giovani-salvador@PROCERGS.RS.GOV.BR]
Sent: 31 July 2003 14:01
To: J2EEPATTERNS-INTEREST@JAVA.SUN.COM
Subject: Re: [J2EEPAT-INT] Pattern BusinessDeligation

Are you talknig about businness delegate design pattern? AFAIK, you put businness delegate in front of your businness components, the ejb components in your case. I think it´s more clear to put your businness delegate in the same environment that your ejb´s are.
Imagine that your ejb components will be called now from a swing application and not from a web client. You will not distribute your businness delegate component with each client that will access your businness components, ok?
 
Giovani Salvador
 
----- Original Message -----
From: Madhu V
Sent: Thursday, July 31, 2003 8:09 AM
Subject: Pattern BusinessDeligation

Hi All,
 
When implementing business deligation in J2EE Application where my jar of Enterprise JavaBeans (EJB's) will be deployed in one system and my war file will be deployed in other system, where exactly i put my businessdelegate classes?. Am i right if i put those classes in .war file?
 
Can anybody clarify my Question
 
Thanks in Advance
Madhu V
==================================================================== Community Web Site (Core J2EE Patterns Catalog - Online Version): http://java.sun.com/blueprints/corej2eepatterns Getting Started (Beta Version): http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/ Get the book: http://www.amazon.com/exec/obidos/ASIN/0130648841/corej2eepatte-20 List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@java.sun.com
==================================================================== Community Web Site (Core J2EE Patterns Catalog - Online Version): http://java.sun.com/blueprints/corej2eepatterns Getting Started (Beta Version): http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/ Get the book: http://www.amazon.com/exec/obidos/ASIN/0130648841/corej2eepatte-20 List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@java.sun.com

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.502 / Virus Database: 300 - Release Date: 18/07/2003

==================================================================== Community Web Site (Core J2EE Patterns Catalog - Online Version): http://java.sun.com/blueprints/corej2eepatterns Getting Started (Beta Version): http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/ Get the book: http://www.amazon.com/exec/obidos/ASIN/0130648841/corej2eepatte-20 List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@java.sun.com
==================================================================== Community Web Site (Core J2EE Patterns Catalog - Online Version): http://java.sun.com/blueprints/corej2eepatterns Getting Started (Beta Version): http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/ Get the book: http://www.amazon.com/exec/obidos/ASIN/0130648841/corej2eepatte-20 List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@java.sun.com
©2008 junlu.com - Jax Systems, LLC, U.S.A.