CN101840335A - J2EE web application system capable of configuring service module - Google Patents

J2EE web application system capable of configuring service module Download PDF

Info

Publication number
CN101840335A
CN101840335A CN201010154399A CN201010154399A CN101840335A CN 101840335 A CN101840335 A CN 101840335A CN 201010154399 A CN201010154399 A CN 201010154399A CN 201010154399 A CN201010154399 A CN 201010154399A CN 101840335 A CN101840335 A CN 101840335A
Authority
CN
China
Prior art keywords
module
flow
flow process
business
web application
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.)
Pending
Application number
CN201010154399A
Other languages
Chinese (zh)
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.)
GUANGZHOU BAIYUN INTERNATIONAL AIRPORT HOLDINGS CO Ltd
Original Assignee
GUANGZHOU BAIYUN INTERNATIONAL AIRPORT HOLDINGS CO Ltd
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 GUANGZHOU BAIYUN INTERNATIONAL AIRPORT HOLDINGS CO Ltd filed Critical GUANGZHOU BAIYUN INTERNATIONAL AIRPORT HOLDINGS CO Ltd
Priority to CN201010154399A priority Critical patent/CN101840335A/en
Publication of CN101840335A publication Critical patent/CN101840335A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a J2EE web application system capable of configuring a service module, which comprises a flow configuration file module, a flow unit processor module, a flow unit service module access point, a flow data structure, a flow file resolution module, a flow management module and a flow server component. Through cooperation among the modules, the lightweight J2EE web application system capable of dynamically configuring the service module and a primary service flow and fusing enterprise service buses is implemented.

Description

A kind of J2EE web application system of configurable business module
Technical field
The invention belongs to the J2EE web applied technical field in the software development, particularly relate to a kind of J2EEweb application system of the dynamically configurable business module based on the MVC pattern.
Technical background
In J2EE web application and development field, often develop in the three-tier architecture mode, i.e. presentation layer, Business Logic, lasting data layer, and Business Logic is wherein being born the task of the flow process of managing business, and is the embodiment of system's commercial function.In the face of the market demand that constantly changes, people use web and have produced the requirement that needs exploitation fast, disposes, changes fast service logic fast, this just requires the developer will adopt rational framework in the web application development process, and this framework key is to require to realize the loose coupling of system's different layers, different business module.
Popular Development Framework is the MVC pattern of struts+spring+hibernate at present, this pattern has realized that presentation layer, Business Logic separate with the lasting data layer, and its weak point is: when presentation layer is submitted to data Business Logic and handled, need carry out hard coded, and the code of page data conversion and service logical calling is coupling in a place.So just cause system architecture to have following problem:
When 1 system will change service logic, need make up and replace the operation layer module in the code rank.
Need server outage and recompilate code during 2 replacing service logics, reduced the ability of system's rapid reaction commercial variation.
3 this traditional Development Framework are not high to existing ESB (ESB) degrees of fusion, and other calls to need code level equally.
For this reason, the present invention is directed to traditional MVC pattern and expand, design one can the dynamic-configuration operation flow, merge the lightweight J2EE web application system of ESB, thereby remedied the deficiencies in the prior art.
Summary of the invention
The objective of the invention is to overcome the deficiencies in the prior art, provide one can the dynamic-configuration business module and the J2EE web application system of a kind of configurable business module of lightweight of main business workflow, fusion ESB.
For realizing purpose of the present invention, the technical scheme that is adopted comprises with lower module:
The procedure configuration files module;
Flow process Cell processor module;
Flow process unit business module access point;
The flow data structure;
The flow file parsing module;
The workflow management module;
And workflow server assembly.
It is specific as follows to constitute module of the present invention:
Described procedure configuration files module is an XML module file, this document module definition the structure of general operation flow.This document modular structure is divided the flow process element as follows: file module is with a business configuration element representation, and a plurality of operation flow elements of business configuration element.A flow process is by an operation flow element representation, and this element has stipulated to visit the inlet sign of this flow process.The operation flow element comprises a plurality of flow process unity elements, and the flow process unit is a concrete access point of carrying out the flow process business, and the flow process unit mainly comprises inlet sign, cell data converter, the acquiescence redirect path of this access point.The daughter element of flow process unit comprises a plurality of redirect daughter elements, and this redirect element has been specified redirect situation sign and redirect ID of trace route path (page URL or business module sign), and the redirect element can comprise the flow process unity element.Each flow process unit also has a business module access point element.
Described flow process Cell processor module, it is a DLL (dynamic link library), this interface mainly provides two kinds of data transfer devices: first kind is that the WEB data are converted to the method that is applicable to the business module code process, second kind is the feedback data processing that resume module is intact, returns to the method for the WEB page.
The flow process unity element configuration in procedure configuration files of described flow process business module access point, its corresponding XML element.The business module access point is to expand DLL (dynamic link library), and different business module access points can be sent to data different business modules, the module of for example simple java module, the configuration of spring container, ESB inlet.The business module access point is responsible for the result that business module is handled is fed back to the outside simultaneously.
Described flow data structure is that these data structures have been preserved the detailed configuration information in the XML file at the java data structure of each element definition in the flow process configuration XML file.
Described flow process parsing module reads in flow process configuration XML file by file system, is converted to the flow data structure.
Described workflow management module to the flow data structure of flow process parsing module output, is loaded and is managed, and the flow data structure is kept in the internal memory.The workflow management module is by resolving subsidiary process identification in the HTTP request, content according to flow data structure in the internal memory, with HTTP request and subsidiary data transmission in corresponding flow process unit, trigger the data transfer device of the cell processing module of corresponding flow process configuration of cells then, data are converted to the data type that is applicable to that business module is handled, the business module access point receives data, gives concrete business module with data and handles.The data of returning after business module is handled, the workflow management module will realize data/page jump according to the redirect rule that this flow process unit defines.
Described workflow server assembly is the assembly that can be deployed on the web server, is responsible for receiving and transmits the HTTP request.
Technical characterstic of the present invention embodies as follows:
1,, the coupling of data-switching, concrete business execution module, page jump logic has been transferred on the configuration file from code by procedure configuration files module assembling work flow process.In this way, front page layout developer and backstage business module developer's task can be separated biglyyer, and the content that they need exchange has only the agreement of data-switching.When needs are replaced different business execution module, only need in flow file, to ressemble, and need not carry out the modification of code.
2, by expansion flow process Cell processor, the foreground developer can realize that data-switching and module result feed back task.
3, the business module access point has realized merging a solution of ESB.In configuration file, by flow process unit business module access point, designated module title and method can be passed to the business module code automatically with data, and the business module code will be by oneself.The present invention is the business module access point that the several types module has realized, comprises module, the mule ESB inlet of simple java module, the configuration of spring container.The business module access point is extendible, can design new access point according to different needs.The business module access point can be realized reusing and assembling of business module.
4, the operation flow data structure storage is in server memory, by the workflow management module management, it is revisable when therefore the operation flow data structure is operation, can reload new procedure configuration files by the reloading method of workflow server assembly, starting the flow process parsing module resolves, allow the workflow management module reload the flow data structure, the function that on-the-fly modifies the flow process configuration is provided.
Description of drawings
Fig. 1 is a structural drawing of the present invention;
Fig. 2 is the precedence diagram of initialization flow process;
Fig. 3 is an operation flow implementation precedence diagram;
Fig. 4 is certain orchestration instance figure.
Embodiment:
The present invention is described further below in conjunction with accompanying drawing.
Structural drawing of the present invention comprises following content as shown in Figure 1:
The workflow server assembly;
The flow file parsing module;
The workflow management module;
The procedure configuration files module;
The flow data structure;
Flow process Cell processor module;
Flow process unit business module access point.
Wherein, described flow data structure then comprises following content:
The business configuration element;
The operation flow element;
The operation flow unity element;
Flow process redirect element;
Described workflow server assembly is a module of being responsible for receiving and transmitting the http request, it also is in charge of and call flow parsing module and workflow management module, the flow process parsing module is responsible for procedure configuration files resolved and is converted to the flow data structure, and the workflow management module manages flow data structure graftabl.
Initialization flowchart of the present invention is seen Fig. 2.Behind the web startup of server, the flow process server component is carried out initialization, at this moment, the method for workflow server assembly meeting call flow parsing module loads and the process of analysis configuration file, and the flow process parsing module converts procedure configuration files to corresponding flow data structure; The method of workflow server component call workflow management module goes to load the flow data structure then, and this moment, the flow data structure will be stored in the server memory.
Operation flow implementation of the present invention as shown in Figure 3, when the last HTTP request of Internet arrives, server is given the workflow server assembly with HTTP request and subsidiary data and is transmitted, workflow server component call workflow management module asks to resolve to HTTP, search corresponding flow data unit according to the identifier in the attached data, the data transfer device of the flow process Cell processor module that the flow process cell call self is disposed, data are converted to suitable type give flow process unit business module access point, the business module access point is submitted to concrete business module with data and is carried out.The data that business module returns after carrying out will be submitted to flow process unit business module access point, give flow process Cell processor module again and carry out following process.After the flow process Cell processor completion of processing, data and HTTP request forwarding can be returned the workflow server assembly, the workflow server assembly carries out page jump according to the URL type decided of HTTP request again and still starts next flow process.
According to the example of Fig. 4, demonstrate a concrete implementation process below.
Such operation flow is arranged, the client at first fills in list FORM at p1.jsp, list is handled by a business module BO1 who disposes among the mule ESB, return the OBJ1 object after the BO1 resume module is intact, if the attribute1 attribute of OBJ1 is less than 0, then flow process jumps to p3.jsp, otherwise the OBJ1 object is stored in the session so that the processing of the jsp2. page jumps to p2.jsp.
P2.jsp can generate a FORM2 list according to some users' operation, after single user submits to, FORM2 will be converted to a MAP object, give the process (MAP of BO2 then in the lump together with original OBJ1 object in session, OBJ1) method is handled, BO2 is a module that is configured among the SPRING, the intact OBJ2 of this resume module does not return any data, but it is unusual to dish out in processing procedure, unusual if dish out, then flow process jumps to p5.jsp, if all are normal, then jump to p4.jsp, flow process finishes.
In implementing performance history, at first carry out the configuration effort of some flow file:
Creating a procedure configuration files and state a business configuration element, is operation flow element of this business configuration element declaration then, defines the inlet sign of this operation flow element.
This operation flow element relates to the business that two pages are submitted data to, therefore need provide two flow process unity elements, is respectively this two flow process unity element designated identification.Two flow process unity elements all have different data translation tasks, so want the configuration flow Cell processor, the foreground developer with exchange by summary design or with the backstage developer, learn the data that the backstage business module needs, the data transfer device of realization flow Cell processor interface just is configured to the flow process Cell processor in the flow process unity element then.Two flow process unity elements will use the different business module respectively, therefore want configuring service module access point, designated module title and call method.All there is the situation of redirect two flow process unit, thus to dispose the redirect element, and specify redirect sign and path.So just configured procedure configuration files.And the foreground developer is in design during the page, is set to corresponding process identification will triggering professional hyperlink URL (specifying the action value of list during as submission form), just can trigger corresponding flow process.
Write procedure configuration files, just can on server, map out the work, when starting server, according to initial work shown in Figure 2 procedure configuration files has been converted to the flow data structure and is stored in the internal memory.
Example when sketching service operation in conjunction with Fig. 3:
Filled in the list of p1.jsp as the user, when clicking submit button, browser can send to server together with the content of this list and the sign of flow process with the HTTP request, server is transmitted to the workflow server assembly that configures with the HTTP request, this process identification of workflow server assembly notification streams thread management module parses, flow data structure in the workflow management module audit memory, find out the target flow process and the flow process unit of this HTTP request, start corresponding business module access point then and start operational approach, the OBJ1 as a result that returns gives the flow process Cell processor, judge the attribute of OBJ1 according to corresponding data feedback method, then the HTTP request is redirected to specified page, the realization that is redirected to specific page is by returning corresponding redirect sign in the data feedback interface in the flow process Cell processor, for example among Fig. 4, then return the case1 sign if will jump to p2.jsp, then return the case2 sign if will jump to p3.jsp.When the user after the p2.jsp submission form, process is similar to the above, after the workflow management module finds corresponding flow process unit, the data transfer device that calls its flow process Cell processor is converted to MAP and OBJ1 array with the data among the HTTP and gives corresponding service module access point and handle, and the result that business module returns carries out the selection of page reorientation equally by the corresponding method of flow process Cell processor.
In implementing operation flow process shown in Figure 4, foreground developer's work separates fully with backstage developer's work, the foreground developer only needs to carry out corresponding data-switching according to summary design, and need not be concerned about and call and how to call which business module.Carry out the flow process assembling by procedure configuration files at last.

Claims (9)

1. the J2EE web application system of a configurable business module is deployed in the web application server with the form of software package, it is characterized in that comprising:
The procedure configuration files module;
Flow process Cell processor module;
Flow process unit business module access point;
The flow data structure;
The flow file parsing module;
The workflow management module;
And workflow server assembly.
2. the J2EE web application system of configurable business module according to claim 1, it is characterized in that described procedure configuration files module is a kind of file of XML form, defined the business configuration element, the operation flow element, the flow process unity element, business module access point element, the redirect element, operation flow element and flow process unity element also have unique access identities.
3. the J2EE web application system of configurable business module according to claim 1 is characterized in that described flow process Cell processor module is a kind of DLL (dynamic link library), the method that provides business datum conversion, professional result to feed back.
4. the J2EE web application system of configurable business module according to claim 1, it is characterized in that described flow process unit business module access point is a kind of extendible DLL (dynamic link library), different flow process unit business module access points can send data to dissimilar business modules, and obtain the feedback data of business module.
5. the J2EE web application system of configurable business module according to claim 1 and 2, it is characterized in that each element in the described procedure configuration files module has the main relation shown in following: the procedure configuration files root element is a business configuration element, and a business configuration element comprises a plurality of operation flow elements; An operation flow element comprises a plurality of flow process unity elements; A flow process unity element comprises a business module access point element, a redirect element, and the flow process unity element can be specified the flow process Cell processor.
6. the J2EE web application system of configurable business module according to claim 1, it is characterized in that described flow data structure is the corresponding data structure of a kind of and described procedure configuration files, has comprised each element and configuration information thereof in the procedure configuration files.
7. the J2EE web application system of configurable business module according to claim 1, it is characterized in that described flow file parsing module, by reading in described procedure configuration files, be converted into corresponding described flow data structure and be stored in internal memory.
8. the J2EE web application system of configurable business module according to claim 1, it is characterized in that described workflow management module by analyzing the flow process access identities in the HTTP request, handle to corresponding flow process unit the HTTP request and the data forwarding of carrying thereof.
9. the J2EE web application system of configurable business module according to claim 1, it is characterized in that described workflow server assembly can be deployed in the web application server, be responsible for receiving and transmit HTTP and ask, and management process parsing module and workflow management module.
CN201010154399A 2010-04-16 2010-04-16 J2EE web application system capable of configuring service module Pending CN101840335A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010154399A CN101840335A (en) 2010-04-16 2010-04-16 J2EE web application system capable of configuring service module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010154399A CN101840335A (en) 2010-04-16 2010-04-16 J2EE web application system capable of configuring service module

Publications (1)

Publication Number Publication Date
CN101840335A true CN101840335A (en) 2010-09-22

Family

ID=42743722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010154399A Pending CN101840335A (en) 2010-04-16 2010-04-16 J2EE web application system capable of configuring service module

Country Status (1)

Country Link
CN (1) CN101840335A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462605A (en) * 2014-12-31 2015-03-25 迈普通信技术股份有限公司 Database persistent layer frame configuration and modification method and system
CN104765596A (en) * 2014-01-08 2015-07-08 腾讯科技(深圳)有限公司 Request handling method and device
CN104866298A (en) * 2014-02-26 2015-08-26 阿里巴巴集团控股有限公司 Flow chart based process business implementing method and device
CN105718601A (en) * 2016-03-09 2016-06-29 浪潮通信信息系统有限公司 Dynamic business integrating model and application method thereof
CN106557820A (en) * 2016-11-24 2017-04-05 天津市普迅电力信息技术有限公司 A kind of power transformation O&M standard operation mobile terminal platform
CN106971293A (en) * 2017-03-23 2017-07-21 广东亿迅科技有限公司 A kind of business event based on activiti and flow separation method and system
CN110032360A (en) * 2019-04-19 2019-07-19 成都四方伟业软件股份有限公司 Flow of transactions creation method, device and server
CN112685073A (en) * 2019-10-17 2021-04-20 天津天堰科技股份有限公司 System architecture and system applying same
CN112749220A (en) * 2021-01-08 2021-05-04 北京码牛科技有限公司 Hotel information management system, method, electronic equipment and readable storage medium

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104765596A (en) * 2014-01-08 2015-07-08 腾讯科技(深圳)有限公司 Request handling method and device
CN104866298A (en) * 2014-02-26 2015-08-26 阿里巴巴集团控股有限公司 Flow chart based process business implementing method and device
CN104462605A (en) * 2014-12-31 2015-03-25 迈普通信技术股份有限公司 Database persistent layer frame configuration and modification method and system
CN105718601A (en) * 2016-03-09 2016-06-29 浪潮通信信息系统有限公司 Dynamic business integrating model and application method thereof
CN105718601B (en) * 2016-03-09 2019-04-30 浪潮天元通信信息系统有限公司 A kind of service dynamic integrated model and its application method
CN106557820A (en) * 2016-11-24 2017-04-05 天津市普迅电力信息技术有限公司 A kind of power transformation O&M standard operation mobile terminal platform
CN106971293A (en) * 2017-03-23 2017-07-21 广东亿迅科技有限公司 A kind of business event based on activiti and flow separation method and system
CN110032360A (en) * 2019-04-19 2019-07-19 成都四方伟业软件股份有限公司 Flow of transactions creation method, device and server
CN112685073A (en) * 2019-10-17 2021-04-20 天津天堰科技股份有限公司 System architecture and system applying same
CN112749220A (en) * 2021-01-08 2021-05-04 北京码牛科技有限公司 Hotel information management system, method, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN101840335A (en) J2EE web application system capable of configuring service module
Salatge et al. Fault tolerance connectors for unreliable web services
Fujii et al. Dynamic service composition using semantic information
US8443374B2 (en) Business application integration adapters management system
US9164998B2 (en) Archive-system-independent archive-type objects
CN102436373B (en) Method for realizing resource loading and resource hot-updating in distributed enterprise application system
US20110154226A1 (en) Chip model of an extensible plug-in architecture for enterprise mashups
CN103473696A (en) Method and system for collecting, analyzing and distributing internet business information
Nabi Pro Spark Streaming: The Zen of Real-Time Analytics Using Apache Spark
Candela et al. DILIGENT: integrating digital library and Grid technologies for a new Earth observation research infrastructure
CN103164476A (en) Execution method and execution device of applying metadata to describe files in business intelligence (BI)
Grassi et al. Klaper: An intermediate language for model-driven predictive analysis of performance and reliability
Cortes et al. XtreemOS: a vision for a Grid operating system
Mocan et al. Filling the gap-extending service oriented architectures with semantics
CN101751626B (en) Method for on-line transferring operation instance in combined service evolution
CN101697530B (en) Service management system based on real-time dynamic service quality
Ezenwoye et al. A Proxy-Based Approach to Enhancing the Autonomic Behavior in Composite Services.
De Giorgio et al. An approach to enable replacement of SOAP services and REST services in lightweight processes
Dong et al. Dynamic web service composition based on OWL-S
Kertész et al. BPDL: A data model for grid resource broker capabilities
Zhang et al. Lightweight SOA-based twin-engine architecture for enterprise systems in fixed and mobile environments
Caniou et al. Standardized data management in GridRPC environments
SAMOYLENKO et al. FEATURES OF MICROSERVICES ARCHITECTURE IN E-COMMERCE SYSTEMS
Pieczykolan et al. Semi-automatic creation of adapters for legacy application migration to integration platform using knowledge
Wen et al. Runtime Exceptions Handling for Collaborative SOA Applications

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20100922