发明名称 Method and software for processing server pages
摘要 A method and software for processing a server page is disclosed, in which a resource file is generated for each server page. The resource contains the markup text of the server page. When the server page is translated into a servlet, a static class initializer is included to read the resource file and initialize static class variables with the markup text. The initialized class is then loaded into a shored memory that is accessible to different processes.
申请公布号 USRE45021(E1) 申请公布日期 2014.07.15
申请号 US201213599716 申请日期 2012.08.30
申请人 Oracle International Corporation 发明人 Kunisetty Sunil;Basu Julie;Yiu Kwok Lun Alex
分类号 G06F9/44;G06F9/45 主分类号 G06F9/44
代理机构 Hickman Palermo Truong Becker Bingham Wong LLP 代理人 Hickman Palermo Truong Becker Bingham Wong LLP
主权项 1. A computer-implemented method of dynamically generating web pages, said method comprising: analyzing a page that includes static markup text and a set of code instructions executable on a server; extracting the static markup text from the page and storing the static markup text in a resource file; generating a servlet class for the page based on the set of code instructions, wherein the servlet class comprises an inner class that includes a static class initializer for initializing a static class array of characters for the servlet class, and wherein the servlet class does not include the static markup text; in response to a first use of the servlet class by any instance of the servlet class: invoking the static class initializer of the servletinner class, wherein the invoking of the static class initializer of the servletinner class causes the static markup text to be read from the resource file, and the static class array of characters to be initialized with the static markup text;hotloading a copy of the servlet classan instance of the inner class comprising the static class array of characters initialized with the static markup text into shared memory; in response to each request, of a plurality of requests received from a plurality of clients, for the page from a plurality of clients, performing the steps of: instantiating a distinct instance of the servlet class on the server, wherein instantiating each distinct instance of the servlet class does not create another copy of the static markup text;executing said distinct instance of the servlet class, wherein execution of each distinct instance of the serverservlet class generates a compiled page by combining the static markup text that resides in the shared memory with results produced by executing the set of code instructions; andsending the compiled page to a client, from the plurality of clients, that requested the page; wherein the method is performed by one or more computing devices.
地址 Redwood Shores CA US
您可能感兴趣的专利