MegaDreamDating Inc. is expanding from one office to five throughout the US. As part of this expansion they wish to upgrade their 'Dream date match' application, which matches requirements an ideal partner will have with registered users. Currently the 'Dream date match' is a standalone application (no network code), written on C++. It is likely that the requirements for this application may be extended yet again.
How should you extend this application so that it can be deployed in all the five offices?
Choose one answer.
a. As there is no built in network code, a complete rewrite will be required.
b. There is no need to extend the application, instead run five separate versions (one in each office).
c. Extend the application by integrating CORBA (create a CORBA server at head office) then use
Java IDL at the regional offices to connect to the CORBA server.
d. Use JNI and RMI. Create a RMI server at head office and then create a client for use at the regional offices.
e. Use JNI and
applets as in choice D but applets will connect to the JNI code at the head office.
I would prefer option e, since that would give more flexibility compared to option d where a client needs to be installed. and better manageability also .
But option d is given as correct
"Making the application available at all five regional offices will involve adding network code. But before this can be done, the C++ application needs to be able to talk to the network code. The most appropriate way of doing this is through the use of JNI. The new business logic can be added to the existing application and then made available to the other offices via RMI."
How many of you guys agree with the mock exam author ??