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
Joined: Mar 07, 2001
Posts: 35
posted
0
anyone out there wiling to answer my inquiry? your reply will be truly appriciated. Thanks in advanced Luis
ruilin yang
Ranch Hand
Joined: Feb 25, 2001
Posts: 334
posted
0
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
Joined: Mar 07, 2001
Posts: 35
posted
0
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
Joined: Apr 03, 2001
Posts: 178
posted
0
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.