Develop a Java application that implements Remote Method Invocation (RMI) for the Pearson Institute of Higher Education. The application should allow the user to enter their details to a user interface and these details should then be saved to a database. The Java application must consist of the following: A database: The database should be called registrants, and should have a table called students with the following table properties: idNumber, name, surname, age, cellnumber, degree; A server object interface: This interface should be called ConnectInterface and must have a method called Insert() which will be used to insert the parameters obtained from the GUI. ConnectionImplement class: o The class should be called ConnectionImplement and should implement the ConnectInterface interface. o It should have a method to get the all the student details from the GUI and populate them to the registrants database using the method defined in the ConnectInterface interface. o The method should connect to the database and save all the information in the students’ table. Server class: o The main method should create a server object and register it with an RMI registry o When the server class is running, it should output the message “Server is ready” to the system. o Must implement the method from the ConnectInterface interface to connect to the database and save all the information in the students’ table. Client Class: o The client class should consist of a graphical user interface (GUI) where a user can enter student information. o The Client class should locate a remote object from the RMI register then there should be ActionListener methods for the Register button that takes all the information entered by the user then invokes the method implemented in the ConnectInterface interface to insert the student details into the database. o Display a message in a message dialog box when the student is successfully registered. Otherwise display an error message if there was an error. The combo box must consist of the following degrees: BSC IT BSc Computer Science Higher Certificate in IT BSc Biomedicine Bachelor of Commerce Bachelor of Arts If a user does not input any entry in one or more of the textfields the time the Register button is clicked, then an error message dialog box should be displayed to inform the user of this
Develop a Java application that implements Remote Method Invocation (RMI) for the Pearson Institute of Higher Education. The application should allow the user to enter their details to a user interface and these details should then be saved to a
A database:
The database should be called registrants, and should have a table called students with the following table properties:
idNumber, name, surname, age, cellnumber, degree;
A server object interface:
This interface should be called ConnectInterface and must have a method called Insert() which will be used to insert the parameters obtained from the GUI.
ConnectionImplement class:
o The class should be called ConnectionImplement and should implement the
ConnectInterface interface.
o It should have a method to get the all the student details from the GUI and populate them to the registrants database using the method defined in the ConnectInterface interface.
o The method should connect to the database and save all the information in the students’ table.
Server class:
o The main method should create a server object and register it with an RMI registry
o When the server class is running, it should output the message “Server is ready” to the system.
o Must implement the method from the ConnectInterface interface to connect to the database and save all the information in the students’ table.
Client Class:
o The client class should consist of a graphical user interface (GUI) where a user can enter student information.
o The Client class should locate a remote object from the RMI register then there should be ActionListener methods for the Register button that takes all the information entered by the user then invokes the method implemented in the ConnectInterface interface to insert the student details into the database.
o Display a message in a message dialog box when the student is successfully registered. Otherwise display an error message if there was an error.
The combo box must consist of the following degrees:
-
BSC IT
-
BSc Computer Science
-
Higher Certificate in IT
-
BSc Biomedicine
-
Bachelor of Commerce
-
Bachelor of Arts
If a user does not input any entry in one or more of the textfields the time the Register button is clicked, then an error message dialog box should be displayed to inform the user of this.
Trending now
This is a popular solution!
Step by step
Solved in 7 steps with 1 images