• Post Reply Bookmark Topic Watch Topic
  • New Topic

Difference between application service layer and business service layer?

 
Vijaya Bhaskar
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am new to web services platform and I want to know the exact difference between an application service layer and business service layer(What kind of technologies we use to code these two layers).
 
Ashley Bye
Ranch Hand
Posts: 132
2
Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The business layer is typically where you put your business logic. This is the domain that you are modelling, and should contain mostly domain entities and is the bulk of your software. The application layer sits above the business layer and is the "glue" that joins the various elements of the business layer together and would mostly consist of EJB. It also provides the API to your user interface.

That's a very quick down and dirty and is by no means comprehensive. Take a look at the Cargo Tracker project, which goes into a lot more detail and is something I am finding to be a very good learning resource.
 
Tim Cooke
Sheriff
Posts: 3299
153
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ashley Bye wrote:... and would mostly consist of EJB ...

Incorrect. It might contain EJB, but most likely wouldn't. I have never used EJB and my opinion is based on hearsay, but I've never heard a positive word said about them and the recommendations have been to avoid them at all reasonable cost.

In a decade of working on 'enterprise' software, I've never encountered them in a project.
 
Vijaya Bhaskar
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then what we use exactly??Can you send me any template/design pattern/code,which explains our task exactly?

I mean,am expecting a logical implementation regarding these two service layers.
 
Ashley Bye
Ranch Hand
Posts: 132
2
Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Cooke wrote:
Ashley Bye wrote:... and would mostly consist of EJB ...
Incorrect. It might contain EJB, but most likely wouldn't. I have never used EJB and my opinion is based on hearsay, but I've never heard a positive word said about them and the recommendations have been to avoid them at all reasonable cost.

I sit at my computer corrected. It doesn't quite have the same ring as "I stand corrected"...
 
Radhakrishna Sharma Gorenta
Ranch Hand
Posts: 63
Google App Engine Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do not use two words "application service layer" and "business service layer". It's only "Service Layer". Web Service in an implementation of Service Oriented Architecture .

In service-oriented architecture (SOA), the service layer is the third layer in a five abstraction layer model. The model consists of Object layer, Component layer, Service layer, Process layer and Enterprise layer. The service layer can be considered as a bridge between the higher and lower layers, and is characterized by a number of services that are carrying out individual business functions.

What kind of technologies we use to code - Implementation of JAX-WS or JAX-RS.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!