File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Which tier does Business Delegate belong to? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Which tier does Business Delegate belong to?" Watch "Which tier does Business Delegate belong to?" New topic
Author

Which tier does Business Delegate belong to?

Felix Sima
Ranch Hand

Joined: Feb 06, 2008
Posts: 42
Hello.

I am using maven to build my web application. Maven suggests to have a separate project for each artifact (ear, war, ejb-jars).
My doubt is where to place my business delegates?
The J2EE core design patterns catalog places the business delegate in the business tier, but then, in the "solution" chapter of the business delegate it says "The Business Delegate acts as a client-side business abstraction...".
Should I place my business delegate in the war or in a jar(beside the ejb-jars)?
By the way, what is the difference between a tier and a layer? Is it correctly to say that the business delegate belongs to the business tier but not to the business layer?

Thanks,
Felix
Use www.jaaava.com - A Google custom search engine for java professionals.
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
My doubt is where to place my business delegates?


A Presentation-tier Business Delegate implementation which acts as a client-side business abstraction should be part of the web application and placed in a WAR file with the other Presentation-tier code.

It is possible to have a Business-tier Business Delegate (this is what is described in the design pattern documentation also.) If the business logic in your application interacted with another application, it would encapsulate access to that other application's business methods via Business Delegate. Here your application is a client of the other application.

In my experience, Presentation-tier Business Delegates are the norm, and the other type is rare.

The J2EE programming model is based on three-tier programming. The tiers are: Presentation, Business and Integration.

The term "layer" is another term that is used with other technologies and designs and pre-dates the J2EE programming model. It causes a lot of confusion and does not have a concise definition.
Ronald Wouters
Ranch Hand

Joined: Apr 28, 2005
Posts: 190
The difference between tiers and layers is clearly defined in the
Sun Microsystems White Paper called SUNTONE ARCHITECTURE METHODOLOGY A 3-DIMENSIONAL APPROACH TO ARCHITECTURAL DESIGN, Key Concepts and Overview
This white paper describes Sun's own "version" of the unified process and the image of "the cube" (url above, on page 12) will make things much clearer.

Regards
[ December 08, 2008: Message edited by: Ronald Wouters ]


Sun Certified Developer for the Java 2 Platform
Sun Certified Enterprise Architect for the Java Platform, Enterprise Edition 5
 
GeeCON Prague 2014
 
subject: Which tier does Business Delegate belong to?