• Post Reply 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

2tier or 3tier?

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, ranchers. I have UrlyBird version 1.1.1 assignment with following lock method:


First of all, I decide decouple business logic from Data layer (create 3tier). I decide to use RMI for my network server. Client will use only methods from business layer.

...But in "top level" features mentioned that i must implement "Network server functionality for the database system". Is this mean that server must allow use lock(), unlock() methods remotely by client? In that way business logic will be on client and if we want in future change Swing to JSP for example, we need to reimplement business methods. Am i correct?
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is a really nice (and long) discussion about Should lock methods be callable by the client. I implemented a 3-tier approach, so my business service methods are callable from the client (lock, unlock,... are not)
 
Ranch Hand
Posts: 623
1
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Howdy Eduard!

I'm also struggling with URLyBird 1.1.1. I will be using Business Layer for booking and searching operations, which will be called by RMI.

The "Network server functionality for the database system" was understood by me that you must implement this functionality overall - not precisely on the client side.

Moreover - I refuse putting the business logic into the presentation tier, as even thinking about it makes chills down my spine :-D

Cheers!
 
Eduard Mamedov
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Roel De Nijs wrote:Here is a really nice (and long) discussion about Should lock methods be callable by the client. I implemented a 3-tier approach, so my business service methods are callable from the client (lock, unlock,... are not)


Interesting discussion. But it was so long time ago... :) Yes bussines layer is seem to be a true decision. But I want to know that this decision is not contraddict with MUST ""Network server functionality for the database system" feature... I think someone must make things clear about this.

2tier or 3tier? To be or no to be?
 
Roel De Nijs
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Eduard Mamedov wrote:2tier or 3tier? To be or no to be?


That's your decision. People passed with both approaches.
 
Roel De Nijs
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Eduard Mamedov wrote:Interesting discussion. But it was so long time ago... :)


That's true, but I believe assignments and instructions didn't change that much (if there were any). So although it's a long time ago, I guess the discussion is still a valid (and appropriate) one.
 
Bartender
Posts: 2292
3
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Some people get confused about what a tier is and what a layer is. A tier is more of a physical separation in your system. A layer is more of a logical separation in your system. People in the JEE world always refer to the "presentation tier", because it is the web module of a EAR file in the end of the day. It involves things like JSPs and Servlets. The "business tier" corresponds to the EJB module of your EAR file, and involves things like EJBs and MDBs.

In this system, the only physical separations that exist are between client, server and .db file - hence 3 tiers. Logically, you can have 4 layers: presentation, business, persistence and .db file (I know the .db file is more of a physical separation, but the traditional 4-tier layered architecture style also refers to the database as a logical layer).

And finally, please take a look here. I think it might be helpful!
 
Rancher
Posts: 175
Clojure Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Roberto Perillo wrote:Some people get confused about what a tier is and what a layer is.


I think some of the possible confusion arises from the fact that native speakers of English often use the terms interchangeably. In other words, the physical/logical distinction is not always in play. Expecting strict adherence to it can generate confusion!
 
Eduard Mamedov
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, thanks to all for reply
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic