Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Booking flight at server

 
luis veron
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just want to inquire to those who decided to put the "booking flight" at the server side. Does in means you created 2 remote objects, 1 for the Data instance and another for the "Flight" class that contains the booking method.
Appriciate very much your reply here.
Luis
 
luis veron
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anyone out there wiling to answer my inquiry?
your reply will be truly appriciated.
Thanks in advanced
Luis
 
ruilin yang
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may only use one remote object - server booking logic, which will be responsible to talk to Data class. So Data class does not need to be remote. It is local object relative to the server.
 
luis veron
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ruilin thanks for your reply...
I understand that part that if your going to put the booking intheserver, the "flight class" should be the only one object available (remote). My question now is, how can we implement the public methods of the Data class in this case? I think when you put the logic (bboking) in the server, the public method of the Data class is not needed here anymore. Does it make sense?
Someone can advise me here?
Thanks
Luis
 
Aleksey Matiychenko
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I see the Data Class does not have any Flight specific logic. Nor should it.
THe data class should be reusable to access other databases so no FLight booking should be put into Data on either Server or Client.
The booking logic should reside in an another client class that will use Data class's "modify" method to book flights.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic