CN100349115C - Method for realizing applied server platform - Google Patents

Method for realizing applied server platform Download PDF

Info

Publication number
CN100349115C
CN100349115C CNB2005100428744A CN200510042874A CN100349115C CN 100349115 C CN100349115 C CN 100349115C CN B2005100428744 A CNB2005100428744 A CN B2005100428744A CN 200510042874 A CN200510042874 A CN 200510042874A CN 100349115 C CN100349115 C CN 100349115C
Authority
CN
China
Prior art keywords
server
ejb
file
ejbobject
container
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2005100428744A
Other languages
Chinese (zh)
Other versions
CN1710536A (en
Inventor
郗旻
齐勇
赵季中
候迪
赵天海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Jiaotong University
Original Assignee
Xian Jiaotong University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Jiaotong University filed Critical Xian Jiaotong University
Priority to CNB2005100428744A priority Critical patent/CN100349115C/en
Publication of CN1710536A publication Critical patent/CN1710536A/en
Application granted granted Critical
Publication of CN100349115C publication Critical patent/CN100349115C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention relates to a method for realizing an application server platform. The present invention adopts a call mode, so that a pre-compiler doesn't need to use a reflex mechanism, and the operation speed is greatly increased; the present invention has the process of generating code by pre-compilation, so that control logic is integrated into compiled code so as to make container construction as simple as possible; each ejb embodiment has a corresponding request receiving object, so that a bottleneck similar to a bottleneck happened in dynamic deputy mode can be avoided; EJBHome object and EJBObject object can be generated before the call of a client reaches the destination, so that the access time of the client can be reduced; when the ejb embodiment is not used for a long time, the ejb embodiment can be passivated so that system resources can be saved.

Description

A kind of implementation method of applied server platform
Technical field
The present invention relates to a kind of implementation method of J2EE platform.
Background technology
Along with distribution application system is progressively finished by transformation and internet and the rapid development of electronic commerce of double-layer structure pattern to three-Tier Model, the middleware software industry is arisen at the historic moment.Its conduct is based on the kernel software platform of the network environment of internet, become the ingredient of large-scale distributed application foundation framework, wherein the application server middleware is becoming 3 big pillars with operating system and data base management system (DBMS) basic software field arranged side by side.The application server middleware has adopted up-to-date multi-tier systematic structure, relate to the core technology (being called as " operating system on the internet ") of many software industries such as operating system, network communication, distributed data base, Internet, have very high technology content.
The application server middleware is a kind of independently system software or service routine, Distributed Application software is by this software shared resource between different technology, the application server middleware is positioned on the operating system of client-server, Management Calculation resource and network communication.It has shielded the complicacy and the isomerism of bottom-layer network and operating system, and the services set of client's standard is provided, and makes that total system is transparent for client's visit.
In the middle of the various technical fields of application server middleware, J2EE is a kind of structure that extensively adopts, and he has bigger advantage at aspects such as opening, cross-platform ability, extensibilities.And the core content of J2EE is exactly the use of Enterprise Java Bean container.By Enterprise Java Bean container, application developer can be primarily focused in the realization of service logic, gives Enterprise Java Bean container with the details in the various distributed access processes and finishes.For example, application developer does not need to write transaction code and security control code, and adopts the mode of statement to carry out the processing of affairs and safety.
In the middle of present various J2EE servers, the implementation of container comprises that the granularity of container and container receive the response mode that client requests is called.The selection of granularity cuts both ways, and selects certain granularity not have in essence difference, realizes that difficulty is also roughly suitable; And the difference of the response mode design philosophy of request call is bigger, and main dual mode all has certain disadvantages at present, comprises that mainly software architecture is unintelligible, and speed is fast inadequately, problems such as very flexible.
Summary of the invention
The objective of the invention is to overcome the shortcoming of above-mentioned prior art, provide a kind of rational in infrastructure, speed is very fast, can compare the implementation method of the applied server platform of the various assemblies of flexible processing.
The technical solution used in the present invention is in order to achieve the above object: server is to processing of request: at first use after promptly a jar Documents Department is deployed on the server when one, server determines that by the deployment descriptor of using the kind of using is entity, session or message-driven bean; Server obtains the metamessage of the jar file of input by deployment descriptor and reflex mechanism; Server is by xml resolver analysis elements information, adds metamessage to server defined can not change with application type and generates EJB realization class in the masterplate file that changes processing procedure; The EJB that server calls the iavac process compiling generation in the java developing instrument by operating system realizes that class obtains class file; The rmic that server calls in the java developing instrument by operating system generates corresponding stub and skeleton file to the class file that obtains, and keeps the stub of generation and the source file of skeleton, and these files are kept in the temporary folder; The server transaction types that each method call forward and backward described in the middle of according to metamessage in stub and skeleton source file adds the correspondent transaction code, and adds the safe handling code according to the security information of describing in the middle of the metamessage; The javac process that server calls in the java developing instrument by operating system compiles transaction code and safe handling code, obtains new class file; The new class file that generates is joined in the middle of the iar file of application; Server is set up container according to the type of describing in the metamessage of using with factory method; Using factory method is that newly-established container generates an example pond, generates the example EJBObject object of using according to the EJBObject class in the jar file simultaneously, and these examples are left in the middle of the example pond; Server generates the EJBHome object according to the EJBHome code in the jar file, waits for that the client calls; In the time of the network client access server, realize request through following steps: the client submits request to by webpage from the internet; After the web container receives request, extract the information that needs processing, give application server with these information; Application server will ask to give EJBHome object by container after receiving request call; Container takes out the EJBObject object from the example pond, and gives EJBObject with control; The EJBObject object is carried out the processing code of safety and affairs, and processing procedure is given ejb example by container with control after finishing, and carries out actual calculating process by the ejb example, and obtains final result; EJBObject is put back to the example pond; By EJBObject the result is sent to the client.
Because the present invention adopts and calls, the precompile mode does not need to use reflex mechanism, and travelling speed is improved greatly; And have a process that compiles generating code in advance, therefore can be put into some steering logics in the code of compiling, make that the structure of container is simple as much as possible; For each ejb example the object of corresponding reception request is arranged all, can not cause the bottleneck as the dynamic proxy mode; Can call the client and just generate EJBHome and EJBObject object before reaching, can reduce client's access time like this; When not using the ejb example for a long time, example can be carried out passivation, thereby save system resource.
Description of drawings
Accompanying drawing is a structural representation of the present invention.
Embodiment
Below in conjunction with accompanying drawing to the present invention with further describing.
Referring to accompanying drawing, after server, container factory is created corresponding Enterprise Java Bean container according to the type of using by factory method, and the EJB in will using is deployed in the middle of the Enterprise Java Bean container at application deployment.Each Enterprise Java Bean container all has corresponding example pond and example buffering and Persistent Management device, in store ejb example in the middle of example pond and the example buffering.Below introduce container and this four assemblies and ejb example respectively:
1, Enterprise Java Bean container
Enterprise Java Bean container provides environment for the operation of ejb example;
2, container factory
The function of container factory is to create Enterprise Java Bean container, and EJB is deployed in the Enterprise Java Bean container goes.The deployment of EJB comprises the EJB that resolves among the EJB jar, and resolves the class of ejb example and their Metadata according to the description of the deployment descriptor in the configuration file, and main operation comprises following a few step:
If all EJB are by the deployment of success, application all Enterprise Java Bean container of will starting by sequence use for client.If EJB disposes the situation of failure, will dish out one and dispose unusually, and stop the deployment of this EJB.
3, example pond
The effect in example pond is to preserve ejb example available but that also be not used.In order to reach ratio response time faster, Enterprise Java Bean container of the present invention is realized having adopted the form in example pond to manage the ejb example.If a client has called the create method of ejb example, in Enterprise Java Bean container inside the operation of not doing actual establishment ejb example.But in the example pond, take out an ejb example of having set up.
4, example buffering
The example buffering is to be used for managing the ejb example relevant with the client.
The example cache management comprises the overtime deletion action of passivation, activation and passivation of ejb example.If do not have and the pairing ejb example of client in the example buffering, the example buffering can extract an ejb example in the example pond, configure the environment of this ejb example subsequently, just this ejb example is given client afterwards and is used.
5, Bean example (also claiming the ejb example)
Each client has Enterprise Java Bean container and generates a Bean example when carrying out Operational Visit, this example is that this client is special-purpose, some ephemeral datas in the in store business processing process.
When client was not used an ejb example for a long time, for the save memory space, the example buffering can be with this example passivation, and when client reused, the example buffering can activate this example, uses for the client.
6, Persistent Management device
The persistence manager is used for safeguarding the ejb example state, it after client is used the ejb example, with the state storage of ejb example in Database Systems or file system.
The Persistent Management device is by to the reading or write operation of database, the state of visit ejb example.
Client is represented the client access program with the java programming.Client is visited the ejb example, and is obtained calling the result who returns by remote method invocation (RMI).
Call the EJBHome object and the EJBObject object that generate by server of client visit the ejb example.EJBHome object and EJBObject object need be carried out the external service code promptly: issued transaction, safe handling, log processing and other services.
After EJBHome object and EJBObject object execution service code, these two objects can send call request to Enterprise Java Bean container.Enterprise Java Bean container receives after the request, and it is exactly the Bean example that request is transmitted to the ejb example.After the request of ejb instance processes, the result is sent back to Enterprise Java Bean container, the result is returned EJBHome object and EJBObject object, and the result is returned to client by these two objects by Enterprise Java Bean container.

Claims (1)

1, a kind of implementation method of applied server platform is characterized in that:
1) server is to processing of request:
A, at first use after promptly a jar Documents Department is deployed on the server when one, server determines that by the deployment descriptor of using the kind of using is entity, session or message-driven bean;
B, server obtain the metamessage of the jar file of input by deployment descriptor and reflex mechanism;
C, server be by xml resolver analysis elements information, adds metamessage to server defined can not change with application type and generate EJB realization class in the masterplate file that changes processing procedure;
The EJB that d, server call the javac process compiling generation in the java developing instrument by operating system realizes that class obtains class file;
The rmic that e, server call in the java developing instrument by operating system generates corresponding stub and skeleton file to the class file that obtains, and keeps the stub of generation and the source file of skeleton, and these files are kept in the temporary folder;
F, the server transaction types that each method call forward and backward described in the middle of according to metamessage in stub and skeleton source file adds the correspondent transaction code, and adds the safe handling code according to the security information of describing in the middle of the metamessage;
The javac process that g, server call in the java developing instrument by operating system compiles transaction code and safe handling code, obtains new class file;
H, the new class file that will generate join in the middle of the jar file of application;
I, server are set up container according to the type of describing in the metamessage of using with factory method;
J, to use factory method be that newly-established container generates an example pond, generates the example EJBObject object of using according to the EJBObject class in the jar file simultaneously, and these examples are left in the middle of the example pond;
K, server generate the EJBHome object according to the EJBHome code in the jar file, wait for that the client calls;
2) in the time of the network client access server, realize request through following steps
A, client submit request to by webpage from the internet;
B, after the web container receives request, the information of extract to need handling is given application server with these information;
C, application server will ask to give EJBHome object by container after receiving request call;
D, container take out the EJBObject object from the example pond, and give EJBObject with control;
E, EJBObject object are carried out the processing code of safety and affairs, and processing procedure is given ejb example by container with control after finishing, and carry out actual calculating process by the ejb example, and obtain final result;
F, EIBObject is put back to the example pond;
G, the result is sent to the client by EJBObject.
CNB2005100428744A 2005-06-30 2005-06-30 Method for realizing applied server platform Expired - Fee Related CN100349115C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100428744A CN100349115C (en) 2005-06-30 2005-06-30 Method for realizing applied server platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100428744A CN100349115C (en) 2005-06-30 2005-06-30 Method for realizing applied server platform

Publications (2)

Publication Number Publication Date
CN1710536A CN1710536A (en) 2005-12-21
CN100349115C true CN100349115C (en) 2007-11-14

Family

ID=35706782

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100428744A Expired - Fee Related CN100349115C (en) 2005-06-30 2005-06-30 Method for realizing applied server platform

Country Status (1)

Country Link
CN (1) CN100349115C (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100410876C (en) * 2006-11-29 2008-08-13 南京联创网络科技有限公司 Uniform exploitation method for security soft based on RMI standard
CN101056210B (en) * 2007-06-05 2010-06-02 网御神州科技(北京)有限公司 An event processing system and method of network central management platform
CN101299758B (en) * 2008-05-21 2011-05-11 网御神州科技(北京)有限公司 Well-regulated group system for cosmically processing event as well as processing method
CN107392619B (en) * 2017-07-31 2020-12-29 众安信息技术服务有限公司 Intelligent contract processing method and device
CN110069356A (en) * 2019-04-25 2019-07-30 北京东方通科技股份有限公司 A kind of application server

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6269373B1 (en) * 1999-02-26 2001-07-31 International Business Machines Corporation Method and system for persisting beans as container-managed fields
US6684387B1 (en) * 1999-09-23 2004-01-27 International Business Machines Corporation Method and apparatus for verifying Enterprise Java Beans

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6269373B1 (en) * 1999-02-26 2001-07-31 International Business Machines Corporation Method and system for persisting beans as container-managed fields
US6684387B1 (en) * 1999-09-23 2004-01-27 International Business Machines Corporation Method and apparatus for verifying Enterprise Java Beans

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Java服务器端组件模型—EJB技术及其开发应用 刘定 等.计算机工程与应用,第14期 2002 *
基于Web的中间件系统集成框架—应用服务器的研究 齐勇 等.计算机研究与发展,第38卷第4期 2001 *

Also Published As

Publication number Publication date
CN1710536A (en) 2005-12-21

Similar Documents

Publication Publication Date Title
Thomas et al. Enterprise javabeans technology
US20030212987A1 (en) Client container for building EJB-hosted java applications
US6892202B2 (en) Optimistic transaction compiler
US10120886B2 (en) Database integration of originally decoupled components
CN100349115C (en) Method for realizing applied server platform
Emmerich et al. The impact of research on middleware technology
Saleh et al. The distributed object computing paradigm: concepts and applications
Wu Reflective Java and a reflective component-based transaction architecture
Soblewski SORCER: computing and metacomputing intergrid
Pinandito et al. Framework design for modular web-based application using model-collectionservice-controller-presenter (mccp) pattern
US7503050B2 (en) Transaction polymorphism
Dunka et al. Simplifying Web Application Development Using-Mean Stack Technologies
Sunyaev et al. Middleware
Chawla et al. Resolving interoperability issues of precision and array with null value of web services using WSIG-JADE framework
Sharma et al. A Survey of Middleware in different languages for Ubiquitous Services
Riad et al. Mapping Different Software Architecture Paradigms to Different Integration Techniques: Highlighting Driving and Restraining Forces for Each Paradigm.
Birman et al. Corba: The common object request broker architecture
Liu et al. Mapping component specifications to Enterprise JavaBeans implementations
SAMOYLENKO et al. FEATURES OF MICROSERVICES ARCHITECTURE IN E-COMMERCE SYSTEMS
Satapathi et al. Serverless API Using Azure Functions and Azure Cosmos DB
Gannouni et al. Comparison criteria for data sharing approaches
Gannouni et al. Data integration using service composition in data service middleware
Gannouni et al. DSM: a data service middleware for sharing data in peer-to-peer computing environments
Kent et al. Spider Codenet: A Multi-Server Code Service Model Design for Computational Grid Support
Salmi et al. Structured performance analysis for component-based systems

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20071114

Termination date: 20100630