  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | Pattern BusinessDeligation | Pattern BusinessDeligation 2003-07-31 - By BOWMAN, James
Back 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@(protected)] Sent: 31 July 2003 14:01 To: J2EEPATTERNS-INTEREST@(protected) 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 <mailto:madhu.v@(protected)> V To: J2EEPATTERNS-INTEREST@(protected) <mailto:J2EEPATTERNS-INTEREST@(protected)> 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 (See http://tte-20.ora-code.com) List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
==================================================================== 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 (See http://tte-20.ora-code.com) List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
--- 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 (See http://tte-20.ora-code.com) List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1">
<META content="MSHTML 6.00.2800.1141" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><SPAN class=523053113-31072003><FONT face=Arial color=#0000ff size=2>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.</FONT></SPAN></DIV> <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"> <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma size=2>-- --Original Message-- --<BR><B>From:</B> Giovani Salvador [mailto:giovani-salvador@(protected)]<BR><B>Sent:</B> 31 July 2003 14:01<BR><B>To:</B> J2EEPATTERNS-INTEREST@(protected)<BR><B>Subject:</B> Re: [J2EEPAT-INT] Pattern BusinessDeligation<BR><BR></FONT></DIV> <DIV><FONT face=Arial size=2>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.</FONT></DIV> <DIV><FONT face=Arial size=2>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?</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Giovani Salvador</FONT></DIV> <DIV> </DIV> <BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt arial">-- -- Original Message -- -- </DIV> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:< /B> <A title=madhu.v@(protected) href="mailto:madhu.v@(protected)">Madhu V</A> </DIV> <DIV style="FONT: 10pt arial"><B>To:</B> <A title=J2EEPATTERNS-INTEREST@(protected) href="mailto:J2EEPATTERNS-INTEREST@(protected)">J2EEPATTERNS-INTEREST@(protected) .SUN.COM</A> </DIV> <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, July 31, 2003 8:09 AM</DIV> <DIV style="FONT: 10pt arial"><B>Subject:</B> Pattern BusinessDeligation</DIV> <DIV><BR></DIV> <DIV><FONT face=Arial size=2>Hi All,</FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial size=2>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?</FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial size=2>Can anybody clarify my Question</FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial size=2>Thanks in Advance</FONT></DIV> <DIV><FONT face=Arial size=2>Madhu V</FONT></DIV>============================================================= ======= 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@(protected) </BLOCKQUOTE>================================================================ ==== 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 (See http://tte-20.ora-code.com) List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest .html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected) <BR> <P><FONT size=2>---<BR>Incoming mail is certified Virus Free.<BR>Checked by AVG anti-virus system (http://www.grisoft.com).<BR>Version: 6.0.502 / Virus Database: 300 - Release Date: 18/07/2003<BR></FONT></P></BLOCKQUOTE></BODY></HTML> ==================================================================== 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 (See http://tte-20.ora-code.com) List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
|
|
 |