Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
    Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

What is Application Service Design Pattern?

 
Ranch Hand
Posts: 45
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,

Has anyone ever used Application Service design pattern ? The reason why I am asking is because I have never used and I am not able to really understand the context where it should be used. I have always used a Business Delegate and/or Session Facade for separating my business and presentation tiers.

1. I read up somewhere that it is an alternative approach to the Business Delegate and/or Session Facade approach. Is that so ?

The Core J2EE definition says - "Centralizes and aggregates business components to provide a uniform service layer to the business tier services."

Pattern relationships say -



2. Helper components(of ViewHelper) typically delegate to the business services via a Business Delegate or an Application Service


How different is a Business Delegate than an Application Service? BD is a POJO. Application Service is POJO or can it be a session bean too?

3.

An Application Service uses a Business Delegate to invoke a Session Façade.


Application Service is a layer above the Business Delegate?

4.

A Session Façade might invoke several Application Service implementations or Business Objects.


This seems to be contradicting relationship 3.

5.

An Application Service might interact with other services or Business Objects.


ok

6.

An Application Service can invoke other Application Services and thus create a layer of services in your application.


ok
7.

A Service Activator can invoke Application Service, Session Façade or Business Objects.




8.

A Web Service Broker can interact with Application Service and Session Façade

. So Application Service does the same work as Session Facade??? Am I taking it too literally?


Adam Bien's Real World JEE Patterns book says - "Application Service (Service Façade) used to be a mandatory part of every J2EE application. It was used to isolate the presentation tier from the business tier. The parameters of the Application Service were either primitives or Data Transfer Objects (DTOs)." I seem to be the only one who has never used it !

Googling about Application Service gets me nowhere. All the pages are about the Core J2EE definition. I did not find a real example.

Could someone please help me with my queries?

Thanks - SP( )
 
Marshal
Posts: 67425
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question more than once.
 
That's my roommate. He's kinda weird, but he always pays his half of the rent. And he gave me this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic