my dog learned polymorphism*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes where to put bookflight() question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "where to put bookflight() question" Watch "where to put bookflight() question" New topic
Author

where to put bookflight() question

Tiny Star
Greenhorn

Joined: Jul 29, 2002
Posts: 16
Shoud i put bookflight logic at client side and
call lock() modify() unlock() at client side?
what's the reason so many people put these logic at client side ,is that to say the server is only
give the datainterface ?
why cann't i put bookflight logic at server side ?
help me please!!!
John Smith
Ranch Hand

Joined: Oct 08, 2001
Posts: 2937

what's the reason so many people put these logic at client side ,is that to say the server is only
give the datainterface ?

The client requests a lock or a modification of the record, but the server (or a remote object originated fronm the server) does the job. Hope this clears your confusion.
Eugene.
Tiny Star
Greenhorn

Joined: Jul 29, 2002
Posts: 16
why the server isn't provide a business logic called bookflight(int flightnum)???
if so the client can only call bookflight and this will be much safe for the record lock and unlock ,so why do you put bookflight at the client side.
i am waiting for your reply!
Sarita Gupta
Ranch Hand

Joined: Aug 12, 2002
Posts: 43
Hi Tiny Star,
Originally posted by Tiny Star:
why the server isn't provide a business logic called bookflight(int flightnum)???
if so the client can only call bookflight and this will be much safe for the record lock and unlock ,so why do you put bookflight at the client side.
i am waiting for your reply!

For me, i prefer the business logic to be on the server side for the same reason u mentioned. And Michael gave me the assurance that it's ok as long as we are a able to give a pretty convincing reason for our choice. So I guess u should not worry yourself too much.
Other's what do u say on this.
Sarita


There are no great people in this world, only great challenges which ordinary people rise to meet.
Tiny Star
Greenhorn

Joined: Jul 29, 2002
Posts: 16
what's your reason ?
can we say that we don't want to face the client crash problem and feel it boring to do timeout and put it at server side is much easier?
can you tell me the reason where logic should be put ,client side and server side ?
what their advantages and unadvantages ,thanks very much.
my answer is just like the B/S system,if logic at the client side is changed,every client MUST change there client ,is this good design?
i am really wanted to know why so many people put
bookflight() at client side .
Sarita Gupta
Ranch Hand

Joined: Aug 12, 2002
Posts: 43
refer to posting
How to handle Data and RemoteData
[ September 30, 2002: Message edited by: Sarita Gupta ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: where to put bookflight() question
 
Similar Threads
Client crash problem
Locking in modify method?
where does the Business logic layer go?
Lock/Unlock on Client side or Server Side
Question about Unreferenced