Unlock instant, AI-driven research and patent intelligence for your innovation.

EJB service processing method and device, equipment and medium

A business processing and business request technology, applied in the computer field, can solve problems such as increased network layer overhead, reduced request processing efficiency, and inability to automatically adjust the EJB list.

Active Publication Date: 2020-07-07
中国移动通信集团江西有限公司 +1
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 1. Due to the need to rely on third-party load balancing equipment, the request flow link increases, the overhead of the network layer increases, the request processing efficiency also decreases, and the maintenance cost increases
[0006] 2. The back-end EJB list is static and cannot be adjusted automatically, so the EJB instances in the EJB list are likely to be abnormal, resulting in the distribution of business requests to abnormal EJB instances

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • EJB service processing method and device, equipment and medium
  • EJB service processing method and device, equipment and medium
  • EJB service processing method and device, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach 1

[0040] Distribute multiple business requests to EJB instances corresponding to EJB clients.

[0041] Wherein, multiple service requests are distributed based on a session round robin algorithm (Session Round Robin). The session polling algorithm will only distribute the pressure to one EJB instance for the request from one EJB client.

[0042]When the EJB client is initialized, the instances in the EJB cluster instance list are randomly sorted and then the first EJB instance in the list is selected, after which all business requests of the EJB client are sent to the EJB instance. Wherein, the service request includes: a Java Naming and Directory Interface (JNDI) request and an EJB request.

[0043] Such as Figure 4 As shown, the business requests of the EJB client 1 are distributed to the corresponding EJB instance 3, and the business requests of the EJB client 2 are distributed to the corresponding EJB instance 1. Wherein, when creating a new IC (Initial Context, initiali...

Embodiment approach 2

[0046] Select an EJB instance from the first set in a polling manner, and distribute the service request to the EJB instance selected by polling.

[0047] Among them, multiple service requests are distributed to EJB instances based on the Request Round Robin algorithm.

[0048] For example, if there are 4 EJB instances in total, the business requests of the first group are distributed to the first EJB instance, the business requests of the second group are distributed to the second EJB instance, and the business requests of the third group are distributed to the third EJB instance. EJB instance, the business request of the fourth group is distributed to the fourth EJB instance, the business request of the fifth group is distributed to the first EJB instance, and so on.

[0049] Such as Figure 5 As shown, the business requests of the EJB client are distributed to EJB instance 1, EJB instance 2, and EJB instance 3 in turn. It should be noted that EJB requests will be polled t...

Embodiment approach 3

[0053] According to the current weight of each EJB instance in the first set, distribute multiple service requests to the EJB instances in the first set respectively.

[0054] According to the weight of EJB instances in the cluster, EJB instances are allocated to process EJB requests and JNDI requests. EJB requests and JNDI requests may be assigned to different EJB instances each time an EJB instance is allocated.

[0055] For the weight algorithm, if there are N EJB instances in the cluster, there are M surviving or healthy EJB instances, the total weight of M EJB instances is TotalWeight, the total number of current concurrent requests is GlobalConcurrent, and the weight of the currently distributed EJB instances is Weight, then the maximum number of concurrently processed requests MaxDispatchCount of the current distribution instance satisfies:

[0056] MaxDispatchCount=GlobalConcurrent*Weight / TotalWeight

[0057] +((GlobalConcurrent*Weight)%TotalWeight==0?0:1).

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Embodiments of the present invention provide an EJB service processing method and device, equipment and a medium, and the method is applied to an EJB client. The method comprises: determining a stateof an EJB instance in an EJB cluster to dynamically update a first set, the first set comprising the EJB instance in a normal state; and based on a pre-customized serialization protocol, distributinga plurality of service request loads to the EJB instances in the first set in a balanced manner. According to the embodiment of the invention, the dependence on load balancing equipment of a third party can be avoided, the EJB instance in a normal state is dynamically updated, and the high availability of the EJB instance is ensured.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to an EJB service processing method, device, equipment and medium. Background technique [0002] At present, for the three-tier architecture of Java Platform Enterprise Edition (Java Platform Enterprise Edition, Java EE) applications, when the World Wide Web (World Wide Web, referred to as web) calls enterprise Java components (EnterpriseJavaBean, EJB), the high availability guarantee mainly depends on the first Three-party components. [0003] In the current Java Platform Enterprise Edition (Java Platform, Enterprise Edition, Java EE), the high-availability solution for the EJB client to call the EJB instance is as follows: figure 1 As shown, (1) some complex load configurations such as the load balancer request forwarding strategy; (2) the EJB client sends a service request; (3) the load balancer establishes a connection with the EJB instance of the EJB server according...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L29/08
CPCH04L67/1008H04L67/1034Y02D10/00
Inventor 章兴旺
Owner 中国移动通信集团江西有限公司