Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Design question - Standalone mode - Client mode

 
A Caceres
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hello, I'm reading the documentation for getting the OCMJD Certification, I have a doubt, there are two modes for the client : standalone and client mode.

My understanding is that for client in standalone mode the server code must not be used.

We have to define weather we use a thin client or a thick client meaning that when we use a thick client the business logic is implemented in the client side and when we use a thin client the business logic is implemented in the server side.

I see that everybody decide to use thin client, so my question is:

If we use thin client it means the business logic is on the server but What happen when we use the standalone mode with a thin client? The business logic can't be used because it is on the server and in standalone we can't use the server code...

 
Paweł Baczyński
Bartender
Posts: 1878
35
Firefox Browser IntelliJ IDE Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

In this context it is reasonable to assume that the server code is a communication part.
My understanding of server code must not be used is that you must not start a server and connect to it on the same machine.
It doesn't mean you can't use business logic on the client.

I used that assumption and I passed.
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi A Caceres,

First of all, a warm welcome to CodeRanch!

A Caceres wrote:If we use thin client it means the business logic is on the server but What happen when we use the standalone mode with a thin client? The business logic can't be used because it is on the server and in standalone we can't use the server code...

In short: in standalone mode your application should directly interact with the DBMain interface (or maybe indirectly through a service layer depending on your approach). In network mode your application will interact with the database code through a network layer (implemented using RMI or sockets). This network layer can't be used in standalone mode.
Exactly the same question was asked in this topic, so it's definitely worth reading.

Hope it helps!
Kind regards,
Roel
 
A Caceres
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thank you Roel and Pawel!

Both for the welcome and your answers.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic