• 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

Design question - Standalone mode - Client mode

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...

 
Bartender
Posts: 2236
63
IntelliJ IDE Firefox Browser Spring Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
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
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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Thank you Roel and Pawel!

Both for the welcome and your answers.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic