SSD8_Ex3 [JAVA_RMI] (5) database connection and meeting method definition

SSD8_Ex3 [JAVA_RMI] (5) database connection and meeting method definition

Algorithm language computer technology 3 years ago (2015-06-12) Views: 1 Comments: 0

The following code is the key to the use of the database to achieve RMI meeting management in this experiment. The main method is to implement database connection and implement related query methods. These methods have been stated in the previous article's interface code, but there is no substance.The RmiDataBase class inherits the meetinginterface interface. Series links: SSD8_Ex3 [JAVA_RMI Service] (1) Overview of RMI and Network APIs SSD8_Ex3[JAVA_RMI](2) Remote Interface Declaration SSD8_Ex3 [JAVA_RMI] (3) Open RMI Service SSD8_Ex3 [JAVA_RMI] (4) conference database table SSD8_Ex3 [JAVA_RMI] (5) database connection and meeting method definition SSD8_Ex3 [JAVA_RMI] (6) Create Command Line Navigation Menu RmiDataBase.java     Custom exception handling class: BYException.java      

SSD8_Ex3 [JAVA_RMI] (4) conference database table

SSD8_Ex3 [JAVA_RMI] (4) conference database table

Algorithm language Technical application 3 years ago (2015-06-11) Views: 7 Comments: 0

In order to better manage meetings and perform deletion, addition, and query operations more efficiently, this SSD8_Ex3 [JAVA_RMI], the Extreme Guest combined with database system knowledge, decided to use the database to manage the meeting.Because each topic of this exercise is a typical database problem, although it is placed on the network and distributed computing courses. Series links: SSD8_Ex3 [JAVA_RMI Service] (1) Overview of RMI and Network APIs SSD8_Ex3[JAVA_RMI](2) Remote Interface Declaration SSD8_Ex3 [JAVA_RMI] (3) Open RMI Service SSD8_Ex3 [JAVA_RMI] (4) conference database table SSD8_Ex3 [JAVA_RMI] (5) database connection and meeting method definition SSD8_Ex3 [JAVA_RMI] (6) Create Command Line Navigation Menu   Conference database rmimeeting build table Database name: rmimeeting Create three items: users, meeting, meetingrecord rmimeetingER diagram Table statement  

SSD8_Ex3 [JAVA_RMI] (3) Open RMI Service

SSD8_Ex3 [JAVA_RMI] (3) Open RMI Service

Algorithm language computer technology 3 years ago (2015-06-10) Views: 15 Comments: 0

This step is to create an instance of the remote object registry Registry on the local host, and specify the port 8888, this step is essential (Java default port is 1099), an indispensable step, the lack of registry creation, then Unable to bind object to remote registry.After running, open the RMI service. The client must be consistent with the service address. Series links: SSD8_Ex3 [JAVA_RMI Service] (1) Overview of RMI and Network APIs SSD8_Ex3[JAVA_RMI](2) Remote Interface Declaration SSD8_Ex3 [JAVA_RMI] (3) Open RMI Service SSD8_Ex3 [JAVA_RMI] (4) conference database table SSD8_Ex3 [JAVA_RMI] (5) database connection and meeting method definition SSD8_Ex3 [JAVA_RMI] (6) Create Command Line Navigation Menu MeetingServer.java  

SSD8_Ex3[JAVA_RMI](2) Remote Interface Declaration

SSD8_Ex3[JAVA_RMI](2) Remote Interface Declaration

Algorithm language computer technology 3 years ago (2015-06-10) Views: 7 Comments: 0

Series links: SSD8_Ex3 [JAVA_RMI Service] (1) Overview of RMI and Network APIs SSD8_Ex3[JAVA_RMI](2) Remote Interface Declaration SSD8_Ex3 [JAVA_RMI] (3) Open RMI Service SSD8_Ex3 [JAVA_RMI] (4) conference database table SSD8_Ex3 [JAVA_RMI] (5) database connection and meeting method definition SSD8_Ex3 [JAVA_RMI] (6) Create Command Line Navigation Menu   The remote interface declaration, this type of server and the code and the client must be consistent.The client implements the content of the specific method on the server side by calling the interface and binding the remote object.Only relevant methods are defined in the interface and no method implementation is performed. MeetingInterface.java  

SSD8_Ex3 [JAVA_RMI Service] (1) Overview of RMI and Network APIs

SSD8_Ex3 [JAVA_RMI Service] (1) Overview of RMI and Network APIs

Algorithm language 3 years ago (2015-06-07) Views: 4 Comments: 0

RMI and Network APIs On the weekend, EX3-java, a network and distributed system experiment, implemented the RMI distributed agenda service.The full name of RMI is "Remote Method Invocation."The following is the understanding of the extreme guests: the use of RMI remote method calls, you can achieve a java client to the java RMI server to remotely call the other side of the method, these methods in the server-side declaration and concrete implementation, and only the client The definition of the method and the content of the method without implementation - that is a JAVA interface.Java clients that do not have these methods can obtain remote server-side objects over a network connection and then invoke and manipulate remote objects and methods.In other words, the client's method is defined locally, but the actual implementation is based on the "personal" server connected to the Internet. The JAVA RMI saves a lot of code for the client, but it can also be for the server. Data openness provides another kind of connection query interface. For example, many API services on the Internet are in the form of PHP+JSON. After a URL request, the server queries related results and returns it to the client in

登录

Forget password?

您也可以使用第三方帐号快捷登录

切换登录

注册

TW