Java Mailing List Archive

http://www.junlu.com/

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

Re: Pattern BusinessDeligation

Stefan Frank

2003-07-31

Replies:

BusinessDelegates cannot be packaged with ejb-jars file: The Delegates
belong into the Client-Tier - whatever this client-tier may be: As they
are the place, where you put client-specific requirements for accessing
Distributed Logic (eg. Caching, Multi-Threading Abilities/Disabilities,
Handling Network Congestions), you will probably end up with different
Delegates tailored to the specific needs of your Client-Platform.

So:
- putting the Delegate into the ejb-jar is not an option, as the
Delegate is on the clients side of the Business Tier
- putting them into the web-inf/lib may be in option when you only have
one web-app accessing your Business-Logic
- jaring them up with your Home/Remote-Interfaces may be a good
distribution idea: But in the End the Delegate and the Interface to your
Business-Logic may evelove in different speeds: For the Proxy-Flavour of
the Delegate, the Interface look equal most of the time, but when you
use a Delegate as an Adapter, you may want to have your Delegate look
very different from the BusinessLogic it access - So packaging them
together produces unwanted ties.
- adding it to it to the manifest of your ear to make it available to
more than one web-app is an option for webapps.

Packaging for other (richer) Clients than just web-apps still seems to
be an open issue: The Client-Provisioning Spec is still work-in-progress
- and this may shed some light on these issues
http://java.sun.com/j2ee/provisioning/

greetings
stf





Giovani Salvador wrote:
> Ok, didn�t think about the distribution question.....Thanks
> But i think there are other ways to do that, like exposing your
> businness delegate as a rmi server. Anyway, your clients will have to
> have the stubs..
> But the simplest way is just putting the component with war file, swing
> application.....
>
>
>
> ----- Original Message -----
>
>   *From:* Madhu V <mailto:madhu.v@(protected)>
>   *To:* J2EEPATTERNS-INTEREST@(protected)
>   <mailto:J2EEPATTERNS-INTEREST@(protected)>
>   *Sent:* Thursday, July 31, 2003 10:11 AM
>   *Subject:* Re: Pattern BusinessDeligation
>
>   Hi Giovani Salvador,
>
>   Yaa i am talking about BusinessDeligation only. See if you put your
>   business deligation class in ejb's jar file, then how your JSP and
>   Servlets can create instances of businessdeligation?. Your business
>   deligation will do lookup for EJB's. So it should be in .war file only.
>
>   Thanks
>   Madhu V
>   ----- Original Message -----
>
>      *From:* Giovani Salvador
>      <mailto:giovani-salvador@(protected)>
>      *To:* J2EEPATTERNS-INTEREST@(protected)
>      <mailto:J2EEPATTERNS-INTEREST@(protected)>
>      *Sent:* Thursday, July 31, 2003 6:30 PM
>      *Subject:* Re: 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 <mailto:madhu.v@(protected)>
>         *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
>         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
>      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
>   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 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
List Archive:
http://archives.java.sun.com/archives/j2eepatterns-interest.html
Unsubscribing:
email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.