Information processing device

Middleware enables seamless framework switching on servers by executing old framework functions on new frameworks with minimal manual effort, addressing the labor-intensive issue of framework migration.

JP7568149B1Active Publication Date: 2024-10-16TOYODA GOSEI CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2024018680
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2024-02-09
Publication Date
2024-10-16
Estimated Expiration
2044-02-09

AI Technical Summary

Technical Problem

Switching frameworks on servers is labor-intensive due to the need for extensive manual programming when migrating from an old framework to a new one, such as from Struts to Spring Boot, which complicates the process.

Method used

Implementing middleware that allows functions of the old framework (e.g., Struts) to be executed on the new framework (e.g., Spring Boot) by using a routing table and library calling programs, enabling seamless execution without extensive manual rewriting.

Benefits of technology

Facilitates easy framework switching by allowing functions of the old framework to be executed on the new framework with minimal manual effort, reducing the time and resources required for migration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007568149000001_ABST
    Figure 0007568149000001_ABST
Patent Text Reader

Abstract

To provide an information processing device that makes it easy to switch frameworks operated on a server. [Solution] The information processing device includes a server 11. A request is input to the server 11 from a client computer 12. The server 11 is capable of running a first framework 13 such as Spring Boot. The server 11 also has implemented therein a function 15 executed by a second framework 14 such as Struts as a function corresponding to the request. The server 11 runs middleware 16 that enables the function 15 of the second framework 14 to be executed on the first framework 13.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to an information processing device. [Background technology]

[0002] As an information processing device, for example, the device shown in Patent Document 1 is known. This device includes a server to which requests are input from a client computer. The server is capable of running a framework. The framework executes a function corresponding to the request, and returns the execution result of the function to the client computer as a response to the request. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Patent Publication No. 2021-68160 Summary of the Invention [Problem to be solved by the invention]

[0004] In the information processing device, the framework may be changed from an old one to a new one for reasons such as improving vulnerability. For example, when the new framework is the first framework and the old framework is the second framework, the framework is changed from the second framework to the first framework. In this case, if the program in the first framework is rewritten so that the function executed in the second framework is realized in the first framework, a great deal of work is required. Such a task requiring a great deal of work makes it difficult to switch frameworks operated on a server. [Means for solving the problem]

[0005] Next, various aspects of the information processing device that solves the above problems will be described. (Aspect 1) An information processing device comprising a server to which a request is input from a client computer, the server being capable of operating a framework, the framework executing a function corresponding to the request and returning a result of the execution of the function to the client computer as a response to the request, the framework being a first framework, the function corresponding to the request being a function executed by a second framework and implemented in the server, and the server operating middleware that enables the function of the second framework to be executed on the first framework.

[0006] In order to improve vulnerabilities, etc., the framework running on the server may be changed from the second framework to the first framework. In that case, if the program in the first framework is rewritten so that the functions executed by the second framework are realized by the first framework, a great deal of man-hours is required. Such a task requiring a great deal of man-hours makes it difficult to switch the framework running on the server. However, according to the above configuration, the server runs the middleware, so that the functions of the second framework can be executed on the first framework. In this case, the functions executed by the second framework can be executed on the first framework without the need for a task requiring a great deal of man-hours, such as program rewriting. This makes it easy to switch the framework running on the server.

[0007] (Aspect 2) The first framework passes the request input to the server to the middleware, and the middleware reads a routing table that specifies the function of the second framework to be executed based on the request, and refers to the routing table to execute the function of the second framework corresponding to the request (information processing device described in aspect 1).

[0008] According to the above configuration, when a request is input to the server, the request is passed to the middleware. The middleware refers to the loaded routing table and executes the function of the second framework corresponding to the request on the first framework. This allows the function of the second framework to be executed on the first framework.

[0009] (Aspect 3) The middleware executes a function of the second framework corresponding to the request on the first framework and returns the execution result to the client computer in a display format for displaying the execution result of the function, and the server is implemented with a display function as a function executed by the second framework, for displaying the execution result based on the execution result, and a tag function for executing the display function based on its name, and when the middleware returns the execution result to the client computer in the display format for displaying the execution result, if the display format corresponds to a display function dependent on the second framework, it executes the display function of the second framework based on the name of the display function by executing the tag function (information processing device described in aspect 1).

[0010] According to the above configuration, when the execution result of the function based on the request is returned to the client computer as a response, the execution result is returned to the client computer in a display format for displaying the execution result. When the display functions for displaying the execution result in the display format include a display function that depends on the second framework, the display function of the second framework is executed based on the name of the display function by executing a tag function. In this way, the display function of the second framework is executed on the first framework.

[0011] (Aspect 4) The first framework has a database library used when operating a database, and passes the request input to the server to the middleware, and the middleware executes a library call program based on SQL, a language for operating the database, as a function of the second framework that is executed based on the request, and the library call program has a database management class whose contents correspond to the first framework, and the package name and class name of the database management class are the same as those used in the second framework, and is executed by the middleware based on the SQL to operate the database using the database library (information processing device described in aspect 1).

[0012] According to the above configuration, the middleware executes a library call program based on SQL, which is a language for operating a database, as a function of the second framework executed based on a request. The contents of the database management class of this library call program correspond to those of the first framework, and the package name and class name of the database management class are the same as those used in the second framework. Therefore, by executing the library call program based on SQL by the middleware, it is possible to operate a database using the database library of the first framework.

[0013] (Aspect 5) The database library passes the execution results of the database operations to the middleware, and the middleware returns the execution results to the client computer in a display format for displaying the execution results. The server is implemented with a display function, as a function executed by the second framework, for displaying the execution results in a display format for displaying the execution results based on the execution results, and a tag function for executing the display function based on its name. When the middleware returns the execution results to the client computer in the display format for displaying the execution results, if the display format corresponds to a display function dependent on the second framework, it executes the display function of the second framework based on the name of the display function by executing the tag function (information processing device described in aspect 4).

[0014] According to the above configuration, the execution result of the database operation is returned to the client computer in a display format for displaying the execution result, thereby making a response based on the request to the client computer. When there is a display function that depends on the second framework among the display functions for displaying the execution result in the display format, the display function of the second framework is executed based on the name of the display function by executing a tag function. In this way, the display function of the second framework is executed on the first framework. [Brief description of the drawings]

[0015] [Figure 1] 1 is a schematic diagram showing an overall configuration of an information processing device; [Diagram 2] 2 is a block diagram for explaining the operation of a character encoding correction filter unit of middleware executed on a server in the information processing device of FIG. 1. [Diagram 3] 2 is a block diagram for explaining the operation of a controller unit of the middleware of FIG. 1. [Figure 4]2 is a block diagram for explaining the operation of a controller unit of the middleware of FIG. 1. [Diagram 5] 2 is a block diagram for explaining the operation of a controller unit of the middleware of FIG. 1. [Figure 6] 2 is a block diagram for explaining the operation of a service base unit of the middleware of FIG. 1. [Figure 7] 2 is a block diagram for explaining the operation of an event base unit of the middleware of FIG. 1. [Figure 8] 2 is a block diagram for explaining the operation of a DB management unit of the middleware of FIG. 1. [Figure 9] 2 is a block diagram for explaining the operation of a JSP tag reproducing function unit of the middleware of FIG. 1. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] Hereinafter, an embodiment of an information processing device will be described with reference to FIGS. As shown in Fig. 1, the information processing device includes a server 11. A request is input to the server 11 from a client computer 12. The server 11 is capable of running a first framework 13 such as Spring Boot. The server 11 also has implemented therein a function 15 executed by a second framework 14 such as Struts as a function corresponding to the request. The server 11 runs middleware 16 that enables the function 15 of the second framework 14 to be executed on the first framework 13.

[0017] The first framework 13 operated by the server 11 includes a database library 18 used when operating a database 17. The first framework 13 passes the request input to the server 11 to the middleware 16. The middleware 16 executes the function 15 of the second framework 14 on the first framework 13 as a function corresponding to the request.

[0018] The middleware 16 executes a library call program as the above function 15 of the second framework 14, for example, based on SQL (Structured Query Language), which is a language for operating a database 17. The library call program is executed by the middleware 16 based on the above SQL, thereby operating the database 17 using a database library 18. The database library 18 passes the execution results of the operation of the above database 17 to the middleware 16.

[0019] The middleware 16 returns the execution result of the function 15 to the client computer 12 as a response to the request in a display format for displaying the execution result of the function 15. The function 15 executed by the second framework 14 includes a display function for displaying the execution result in a display format for displaying the execution result based on the execution result, and a tag function for executing the display function based on its name.

[0020] When the middleware 16 returns the execution result to the client computer 12 in the display format, if the display format corresponds to a display function dependent on the second framework 14, the middleware 16 executes the display function of the second framework 14 based on the name of the display function by executing the tag function.

[0021] Next, the middleware 16 will be described in detail. The middleware 16 has a character encoding correction filter unit A, a controller unit B, a service base unit C, an event base unit D, a DB management unit E, and a JSP tag reproduction function unit F. Each of the above-mentioned units of the middleware 16 will be described in detail below.

[0022] <Character encoding correction filter part A> A request from the client computer 12 is input to the server 11 through a user's operation of the client computer 12, for example, through an operation on a web browser. Such a request is made, for example, by a character string in the form of a URL (Uniform Resource Locator).

[0023] The request input to the server 11 is passed to the character encoding correction filter unit A of the middleware 16 by the first framework 13. The character encoding correction filter unit A is for correcting the difference between the encoding of the character code used in the first framework 13 and the encoding of the character code used in the second framework 14 when there is a difference between them.

[0024] 2, the character encoding correction filter unit A performs the above correction on the received request, and then passes the request to the standard URL resolution process 20 in the first framework 13. At this time, the character encoding correction filter unit A blocks transmission of the request to the standard character encoding filter 19 in the first framework 13.

[0025] <Controller B> 3, the controller unit B of the middleware 16 receives the corrected request via the URL resolution process 20. The controller unit B manages the session between the client computer 12 that sent the request and the server 11, i.e., the communication state.

[0026] More specifically, the request includes information about a session key. This session key is used to identify the user of the client computer 12 that sent the request. The controller unit B obtains the session key from the request. Furthermore, the controller unit B obtains session information between the client computer 12 and the server 11 from a standard session management function 21 in the first framework 13.

[0027] If the controller unit B determines, based on the acquired session key and session information, that there is no session between the user of the client computer 12 that sent the request and the server 11, it executes a login process 22. In this login process 22, a login screen is returned to the client computer 12 as a response to the request. Then, the user of the client computer 12 enters a user ID and password based on the login screen, and a session is established between the user and the server 11. On the other hand, if the controller unit B determines, based on the acquired session key and session information, that there is a session between the user and the server 11, it executes a URL resolution process 23 on the middleware 16.

[0028] As shown in FIG. 4, the controller unit B executes the URL resolution process 23 on the middleware 16, thereby executing some of the functions 15 in the second framework 14 using a URL routing table 24. The URL routing table 24 represents the association between the execution program of each of the functions 15 and the URL in the request. In other words, the URL routing table 24 specifies the execution program of the function 15 to be executed based on the URL in the request. The controller unit B is capable of reading the URL routing table 24. Based on the URL in the request, the controller unit B refers to the read URL routing table 24 and executes the function 15 corresponding to the URL in the request.

[0029] As shown in FIG. 5, the controller unit B receives the execution result of the function 15. After receiving the execution result, the controller unit B executes a screen JSP selection process 25 for outputting the execution result in HTML (HyperText Markup Language) format. The screen JSP selection process 25 outputs the execution result in HTML format using JSP (Java [registered trademark] Server Pages) 26. There are multiple types of JSP 26 depending on the difference in display format such as an edit screen, a reference face, and a delete screen. The execution result stores a path indicating which display format of the multiple types of JSP 26 should be used. The screen JSP selection process 25 executes the JSP 26 corresponding to the path stored in the execution result, and returns the execution result to the client computer 12 as a response to the request in a display format for displaying the execution result.

[0030] <Service Base C> When executing the above function 15, the controller unit B performs an event call process 27 shown in Fig. 6. This event call process 27 is for calling an event 29 required for executing the above function 15, and then executing the called event 29. Such an event 29 has the same location and name as an event executed in the second framework 14, and is implemented in the server 11 as something executable in the first framework 13. In the event call process 27, event information indicating an event required for executing the above function 15 is passed to the service base unit C.

[0031] Service base C searches for event 29 required for the execution of the above function 15 using event table 28. The above event table 28 represents the association between event information and the corresponding event 29. Service base C refers to event table 28 based on the above event information and searches for event 29 required for the execution of the above function 15. Service base C executes the searched event 29 through transaction processing 30. Transaction processing 30 is for restoring the state of database 17 to the state before the execution of transaction processing 30 if a problem occurs in the executed event 29.

[0032] <Event base D> When executing the above event 29, service base C performs DAO call processing 31 shown in FIG. 7. This DAO call processing 31 is for calling DAO (Data Access Object) 32 required for the execution of the above event 29 and then executing the called DAO 32. Such DAO 32 is implemented on server 11 at the same position and with the same name as the DAO executed in the second framework 14 and is executable in the first framework 13. In DAO call processing 31, the DAO name required for the execution of the above event 29 is passed to event base D.

[0033] Event base D searches for DAO 32 required for the execution of the above event 29 using DAO table 33. The above DAO table 33 represents the association between the DAO name and the corresponding DAO 32. Event base D refers to DAO table 33 based on the above DAO name and searches for DAO 32 required for the execution of the above event 29. Event base D executes the searched DAO 32.

[0034] <DB management department E> When the event base D executes DAO32, as shown in FIG. 8, the DAO32 passes the SQL corresponding to the DAO32, that is, the SQL which is a language for operating the database 17, to the DB management unit E. The DB management unit E executes a library call program based on the SQL as the function 15 of the second framework 14.

[0035] The library call program is such that the content of the database management class corresponds to the first framework 13, and the package name and class name of the database management class are the same as those used in the second framework 14. The library call program is executed based on the SQL by the DB management unit E, and operates the database 17 using the database library 18. The database library 18 passes the execution result of the operation of the database 17 to the DB management unit E.

[0036] The execution result passed to the DB management unit E is passed to the controller unit B in the middleware 16 shown in FIG. 1. After receiving the execution result, the controller unit B executes the above-described screen JSP selection process 25. The screen JSP selection process 25 executes the JSP 26 corresponding to the path stored in the execution result, and returns the execution result to the client computer 12 as a response to the request in a display format for displaying the execution result and in HTML format.

[0037] <JSP tag reproduction function unit F> The function 15 implemented in the server 11 shown in FIG. 1, that is, the function 15 of the second framework 14, includes the display function and the tag function as described above. This display function is a function for displaying the execution result in a display format based on the execution result. Also, the tag function is a function for executing the display function based on its name.

[0038] 9 executes a JSP tag call process 34 when the controller unit B returns the execution result to the client computer 12 in the above-mentioned display format and in HTML format as described above. When the display format of the execution result corresponds to a display function dependent on the second framework 14, the JSP tag call process 34 executes the display function of the second framework 14 based on the name of the display function by executing the tag function.

[0039] The client computer 12 receives the execution result in the display format as a response to the request, and then displays the execution result in the display format using a web browser.

[0040] Next, the effects of the information processing device of this embodiment will be described. (1) For reasons such as improving vulnerability, the framework operated by the server 11 may be changed from the second framework 14 to the first framework 13. In this case, if the program in the first framework 13 is rewritten so that the function 15 executed by the second framework 14 is realized by the first framework 13, a great deal of work is required. Such a task requiring a great deal of work makes it difficult to switch the framework operated by the server 11. However, in the information processing device, the server 11 can execute the function 15 of the second framework 14 on the first framework 13 by operating the middleware 16. In this case, the function 15 executed by the second framework 14 can be executed on the first framework 13 without a task requiring a great deal of work such as program rewriting. This makes it easy to switch the framework operated by the server 11.

[0041] (2) When a request is input to the server 11, the request is passed to the middleware 16. Such a request is made, for example, by a character string in URL format. The controller unit B of the middleware 16 refers to the URL routing table 24 and causes the function 15 of the second framework 14 corresponding to the request to be executed on the first framework 13. This allows the function 15 of the second framework 14 to be executed on the first framework 13.

[0042] (3) When the controller unit B of the middleware 16 responds to the client computer 12 with the execution result of the function based on the request, the execution result is returned to the client computer 12 in a display format for displaying the execution result. At that time, a JSP tag call process 34 is executed by the JSP tag reproduction function unit F of the middleware 16. When there is a display function that depends on the second framework 14 among the display functions for displaying the execution result in the display format, the JSP tag call process 34 executes the display function of the second framework 14 based on the name of the display function by executing a tag function. In this way, the display function of the second framework 14 is executed on the first framework 13.

[0043] (4) The DB management unit E of the middleware 16 executes a library call program based on SQL, which is a language for operating the database 17, as a function 15 of the second framework 14 that is executed based on a request. The contents of the database management class of this library call program correspond to the first framework 13, and the package name and class name of the database management class are the same as those used in the second framework 14. For this reason, by executing the library call program based on SQL by the DB management unit E, it is possible to operate the database 17 using the database library 18 of the first framework 13.

[0044] (5) The execution result is returned to the client computer 12 in a display format for displaying the execution result of the operation of the database 17, thereby making a response based on the request to the client computer 12. When there is a display function dependent on the second framework 14 among the display functions for displaying the execution result in the display format, the display function of the second framework 14 is executed based on the name of the display function by executing the tag function by the above-mentioned JSP tag calling process 34. Therefore, even when the execution result is returned to the client computer 12 in a display format for displaying the execution result of the operation of the database 17, the display function of the second framework 14 is executed on the first framework 13.

[0045] The above embodiment can be modified, for example, as follows: The above embodiment and the following modified examples can be combined with each other to the extent that no technical contradiction occurs. A framework other than Spring Boot may be adopted as the first framework 13.

[0046] As the second framework 14, a framework other than Struts may be adopted. [Explanation of symbols]

[0047] 11. Server 12...Client computer 13…First Framework 14…Second Framework 15…Function 16…Middleware A: Character encoding correction filter section B: Controller section C: Service base D: Event base E…DB management department F...JSP tag reproduction function part 17. Database 18...Database Library 19...Character encoding filter 20...URL resolution process 21...Session management function 22...Login process 23...URL resolution process 24…URL routing table 25...Screen JSP selection processing 26…JSP 27...Event call processing 28…Event table 29…Event 30…Transaction processing 31…DAO call processing 32…DAO 33…DAO table 34...JSP tag invocation processing

Claims

1. An information processing device comprising: a server to which a request is input from a client computer, the server being capable of operating a framework, the framework executing a function corresponding to the request and returning a result of the execution of the function to the client computer as a response to the request, the framework is a first framework, the function corresponding to the request is a function executed by a second framework and implemented in the server; the server operates middleware that enables the function of the second framework to be executed on the first framework; the first framework passes the request input to the server to the middleware; The middleware is an information processing device that reads a routing table that specifies the function of the second framework to be executed based on the request, and executes the function of the second framework corresponding to the request by referring to the routing table.

2. An information processing device comprising a server to which a request from a client computer is input, said server being capable of operating a framework, said framework executing a function corresponding to said request and returning a result of the execution of said function to said client computer as a response to said request, the framework is a first framework, the function corresponding to the request is a function executed by a second framework and implemented in the server; the server operates middleware that enables the function of the second framework to be executed on the first framework; the middleware executes a function of the second framework corresponding to the request on the first framework, and returns the execution result to the client computer in a display format for displaying the execution result of the function; the server is implemented with a display function for displaying the execution result in a display format for displaying the execution result based on the execution result as a function executed by the second framework, and a tag function for executing the display function based on its name; When the middleware returns the execution result to the client computer in a display format for displaying the execution result, if the display format corresponds to a display function dependent on the second framework, the information processing device executes the display function of the second framework based on the name of the display function by executing the tag function.

3. An information processing device comprising a server to which a request from a client computer is input, said server being capable of operating a framework, said framework executing a function corresponding to said request and returning a result of the execution of said function to said client computer as a response to said request, the framework is a first framework, the function corresponding to the request is a function executed by a second framework and implemented in the server; the server operates middleware that enables the function of the second framework to be executed on the first framework; the first framework includes a database library used to operate a database, and passes the request input to the server to the middleware; the middleware executes a library call program based on SQL, which is a language for operating the database, as a function of the second framework that is executed based on the request; The library call program is an information processing device in which the contents of a database management class correspond to a first framework, and the package name and class name of the database management class are the same as those used in the second framework, and the library call program is executed by the middleware based on the SQL to operate the database using the database library.

4. the database library passes the execution result of the database operation to the middleware; the middleware returns the execution result to the client computer in a display format for displaying the execution result; the server is implemented with a display function for displaying the execution result in a display format for displaying the execution result based on the execution result as a function executed by the second framework, and a tag function for executing the display function based on its name; 4. The information processing device according to claim 3, wherein when the middleware returns the execution result to the client computer in a display format for displaying the execution result, if the display format corresponds to a display function dependent on a second framework, the middleware executes the display function of the second framework based on the name of the display function by executing the tag function.

Citation Information

Patent Citations

  • Sip message distribution method and sip message distribution device

    JP2010003273A

  • Information processing apparatus, method for controlling information processing apparatus, and program

    JP2018032119A

  • Information processing device, control method, and program

    JP2020016951A

  • Information processing system and information processing device

    JP2021068160A