CN1710536A - Method for realizing applied server platform - Google Patents

Method for realizing applied server platform Download PDF

Info

Publication number
CN1710536A
CN1710536A CN 200510042874 CN200510042874A CN1710536A CN 1710536 A CN1710536 A CN 1710536A CN 200510042874 CN200510042874 CN 200510042874 CN 200510042874 A CN200510042874 A CN 200510042874A CN 1710536 A CN1710536 A CN 1710536A
Authority
CN
China
Prior art keywords
server
file
ejb
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.)
Granted
Application number
CN 200510042874
Other languages
Chinese (zh)
Other versions
CN100349115C (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

Abstract

Using calling and pre-compilation mode, the disclosed method does not need of reflection mechanism so as to raise running speed greatly. Including a pre-compilation procedure for generating codes, the method puts some control logic into compiled codes so as to make structure of container as simple as possible. Since there is object of receiving request corresponding to each ejb instance, bottleneck like things caused by dynamic agent mode will not appear. EJBHome and EJBObject can be created before a client call is reached in order to save access time for client. Passivation can be carried out for an instance not utilized for long time in order to save system resource.

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 xm1 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 javac 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 obtaining class file, 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 jar 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 EJB0bject 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 jav.ac 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 obtaining class file, 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, EJBObject 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 true CN1710536A (en) 2005-12-21
CN100349115C 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)

Cited By (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
CN107392619A (en) * 2017-07-31 2017-11-24 众安信息技术服务有限公司 Intelligent contract processing method and processing device
CN110069356A (en) * 2019-04-25 2019-07-30 北京东方通科技股份有限公司 A kind of application server

Family Cites Families (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

Cited By (6)

* 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
CN107392619A (en) * 2017-07-31 2017-11-24 众安信息技术服务有限公司 Intelligent contract processing method and processing device
WO2019024674A1 (en) * 2017-07-31 2019-02-07 众安信息技术服务有限公司 Smart contract processing method and apparatus
CN110069356A (en) * 2019-04-25 2019-07-30 北京东方通科技股份有限公司 A kind of application server

Also Published As

Publication number Publication date
CN100349115C (en) 2007-11-14

Similar Documents

Publication Publication Date Title
Thomas et al. Enterprise javabeans technology
US20070027877A1 (en) System and method for improving the efficiency of remote method invocations within a multi-tiered enterprise network
US6892202B2 (en) Optimistic transaction compiler
US20180113754A1 (en) System and method for dynamic proxy generation
Burgueño et al. A Linda-based platform for the parallel execution of out-place model transformations
CN1710536A (en) Method for realizing applied server platform
Byun et al. Oliot epcis: Engineering a web information system complying with epc information services standard towards the internet of things
Wells et al. Linda implementations in Java for concurrent systems
Miller et al. Function passing: A model for typed, distributed functional programming
Wu Reflective Java and a reflective component-based transaction architecture
Wells Coordination languages: Back to the future with linda
Peng et al. Building finite element analysis programs in distributed services environment
US20060010026A1 (en) Transaction polymorphism
Malitsky et al. Spark-mpi: Approaching the fifth paradigm of cognitive applications
Lu Developing the distributed component of a framework for processing intensional programming languages
Malitsky Bringing the HPC reconstruction algorithms to Big Data platforms
Dogac et al. Building interoperable databases on distributed object management platforms
Kent et al. Spider Codenet: A Multi-Server Code Service Model Design for Computational Grid Support
Sharma et al. A Survey of Middleware in different languages for Ubiquitous Services
Bondili Online Banking Application with Angular JS, RESTful Web Services and Cassandra Database
Beraka et al. Data sharing in distributed computing environment
Cottman Solving the data inter-operability problem using a universal data access broker
Birman et al. Corba: The common object request broker architecture
Neto et al. Lessons learned from implementing WS-Coordination and WS-AtomicTransaction
Liang et al. A multiple-tier model manipulation architecture for enterprise decision making

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