aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Booking flight at server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Booking flight at server" Watch "Booking flight at server" New topic
Author

Booking flight at server

luis veron
Ranch Hand

Joined: Mar 07, 2001
Posts: 35
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
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
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
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Booking flight at server