posted 20 years ago
Thanks guys.
for Ricardo Polero, here is the answers:
- What patterns did you used and how ?
I used Factory pattern in my client site. It was used to produce differnet kind of connection based on the requirement of GUI. For example, I have ConnectionFactory to produce LocalConnectionFactory or RemoteConnectionFactory.
- Your solution for local/remote server.
I have a middle layer called FlightService on client side. So for GUI, it only know the FlightSerive. While the FlightService can do everything for GUI, connect to the db, book the flight...
The local/remote only makes difference when FlightService do the connection. For local mode, it will connect to the db file. For remote mode, it will connect to the server.
Hope these will helps.