CN105656929A - Service calling method, device and system - Google Patents

Service calling method, device and system Download PDF

Info

Publication number
CN105656929A
CN105656929A CN201610104991.7A CN201610104991A CN105656929A CN 105656929 A CN105656929 A CN 105656929A CN 201610104991 A CN201610104991 A CN 201610104991A CN 105656929 A CN105656929 A CN 105656929A
Authority
CN
China
Prior art keywords
stub
ejb
service
mark
target
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
CN201610104991.7A
Other languages
Chinese (zh)
Other versions
CN105656929B (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.)
CVIC Software Engineering Co Ltd
Original Assignee
CVIC Software Engineering 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 CVIC Software Engineering Co Ltd filed Critical CVIC Software Engineering Co Ltd
Priority to CN201610104991.7A priority Critical patent/CN105656929B/en
Publication of CN105656929A publication Critical patent/CN105656929A/en
Application granted granted Critical
Publication of CN105656929B publication Critical patent/CN105656929B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a service calling method, device and system. The method includes the steps of receiving an EJB service calling request sent by a client side, wherein the request includes a stub which is locally inquired about by the client side and corresponds to a to-be-called EJB service, and the stub carries first identification; judging whether the stub loses efficacy or not through an EJB server, inquiring about a target stub with the identification the same as the first identification of the stub in a preset stub set if the stub loses efficacy, calling the EJB service corresponding to the target stub, and feeding the EJB service back to the client side. By means of the scheme, even when the client side conducts EJB service calling according to the singleton pattern, the problem that because of redeployment of the EJB service, the client side can not be successfully called can not happen.

Description

A kind of service calling method, Apparatus and system
Technical field
The application relates to communication technical field, more particularly, it relates to a kind of service calling method, Apparatus and system.
Background technology
EJB (EnterpriseJavaBean) is a part of J2EE (javaEE), defines a standard for developing the enterprise's multiple utility program based on assembly. Its feature includes network service support and core developing instrument (SDK). In J2EE, EnterpriseJavaBeans (EJB) is called Java Emterprise JavaBeans, it it is the core code of Java, it is Session Border Control (SessionBean), entity B ean (EntityBean) and Message-Driven Bean (MessageDrivenBean) respectively.
In the framework applications of EJB, client obtains the counterfoil stub of EJB service in EJB server by lookup method and is saved in client, and client can utilize the stub EJB going EJB server calls corresponding to service. Client obtains the process of the stub of EJB service by lookup method non-single example mode and single example mode, under non-singleton pattern, client all can perform the process of lookup when calling EJB service every time, and then can find the EJB stub serviced, and successfully calls EJB service. Under singleton pattern, client first time can perform lookup process when accessing EJB service, but then directly uses locally stored stub to go server calls EJB to service when subsequent client accesses this EJB service again, without again performing lookup process.
Contrast is it can be seen that non-singleton pattern is low compared to the execution efficiency of singleton pattern, and therefore user is partial to use singleton pattern. But under singleton pattern, if the EJB service in EJB server heavily deploys, then in client, existing stub will lose efficacy, and client reuses when the stub of storage goes to call EJB service and will be unable to successfully call.
Summary of the invention
In view of this, this application provides a kind of a kind of service calling method, Apparatus and system, be used for solving existing customer's end when carrying out EJB service call with singleton pattern, when EJB service can cause the problem that client cannot successfully call EJB service after heavily disposing.
To achieve these goals, it is proposed that scheme as follows:
A kind of service calling method, is applied to EJB server, and the method includes:
Receiving the EJB service invocation request that client sends, described EJB service invocation request comprises counterfoil stub, and described stub carries the first mark;
Judge whether described stub lost efficacy;
If so, then in preset stub set, the target stub identical with first mark of described stub is obtained;
Call the EJB service corresponding with described target stub, and feed back to described client.
Preferably, also include:
When judging that described stub lost efficacy, described target stub is fed back to described client, utilize described target stub to replace the stub of existing identical first mark for described client.
Preferably, described stub also carries the second mark, described judges whether described stub lost efficacy, including:
The target stub that inquiry is identical with first mark of described stub in preset stub set;
Judge that second mark of described target stub and the second of described stub identify whether identical;
If not, it is determined that described stub lost efficacy, if, it is determined that described stub did not lose efficacy.
Preferably, described judge whether described stub lost efficacy, including:
Utilize described stub to call the EJB service of correspondence, and judge whether to call successfully;
If never call success, it is determined that described stub lost efficacy, if successfully calling, it is determined that described stub did not lose efficacy.
A kind of service call device, is applied to EJB server, and this device includes:
Service invocation request receives unit, and for receiving the EJB service invocation request that client sends, described EJB service invocation request comprises counterfoil stub, and described stub carries the first mark;
Stub inefficacy judging unit, is used for judging whether described stub lost efficacy;
Target stub acquiring unit, for when judging that described stub lost efficacy, obtaining the target stub identical with first mark of described stub in preset stub set;
Service call unit, for calling the EJB service corresponding with described target stub, and feeds back to described client.
Preferably, also include:
Target stub feedback unit, for when judging that described stub lost efficacy, described target stub being fed back to described client, utilizes described target stub to replace the stub of existing identical first mark for described client.
Preferably, described stub also carries the second mark, and described stub inefficacy judging unit includes:
Target stub query unit, for the target stub that inquiry in preset stub set is identical with first mark of described stub;
Second mark judging unit, second for judging described target stub identifies second with described stub and identifies whether identical; If not, it is determined that described stub lost efficacy, if, it is determined that described stub did not lose efficacy.
Preferably, described stub inefficacy judging unit includes:
Call result judging unit, for utilizing described stub to call the EJB service of correspondence, and judge whether to call successfully; If never call success, it is determined that described stub lost efficacy, if successfully calling, it is determined that described stub did not lose efficacy.
A kind of service calling system, including client and EJB server, wherein:
Described client is used for, and instruction is read in the EJB service of response user, according to the corresponding relation between first mark of preset EJB service and counterfoil stub, identifies the stub corresponding with EJB to be read service at local search first; The EJB service invocation request comprising described stub is sent to described EJB server;
Described EJB server is used for, and receives described EJB service invocation request, it is judged that whether described stub lost efficacy; If so, then in preset stub set, the target stub identical with first mark of described stub is obtained;Call the EJB service corresponding with described target stub, and feed back to described client.
Can be seen that from above-mentioned technical scheme, the service calling method being applied to EJB server that the embodiment of the present application provides, receive the EJB service invocation request that client sends, this request comprises the counterfoil stub corresponding with EJB to be called service that client arrives at local search, and stub carries the first mark, further EJB server judges whether described stub lost efficacy, if, the target stub that then inquiry is identical with first mark of described stub in preset stub set, call the EJB service corresponding with described target stub, and feed back to described client. use the application scheme, the stub that client is first provided by EJB server after receiving EJB service invocation request carries out ineffectiveness judgement, if EJB service corresponding for stub redeploys, then determine that this stub lost efficacy, and then the stub of identical first mark in inquiry EJB server, the stub inquired is utilized to call EJB service, and feed back to client, even if client carries out EJB service call without occurring owing to EJB services the problem that the client heavily disposed and cause cannot successfully be called according to singleton pattern.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present application or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in the following describes is only embodiments herein, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to the accompanying drawing provided.
A kind of service calling method flow chart that Fig. 1 provides for the embodiment of the present application;
Fig. 2 is the disclosed another kind of service calling method flow chart of the embodiment of the present application;
Fig. 3 is the embodiment of the present application another service calling method flow chart disclosed;
Fig. 4 is the embodiment of the present application another service calling method flow chart disclosed;
Fig. 5 is the disclosed a kind of service call apparatus structure schematic diagram of the embodiment of the present application.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is only some embodiments of the present application, rather than whole embodiments. Based on the embodiment in the application, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of the application protection.
The application scheme is introduced by the present embodiment from EJB server side, referring to a kind of service calling method flow chart that Fig. 1, Fig. 1 provide for the embodiment of the present application.
As it is shown in figure 1, the method includes:
The EJB service invocation request that step S100, reception client send;
Wherein, described EJB service invocation request comprises counterfoil stub, and described stub carries the first mark.
Specifically, instruction is read in the EJB service of client end response user, the corresponding relation between the first mark according to preset EJB service and counterfoil stub, identify the stub corresponding with EJB to be read service at local search first, and then send the EJB service invocation request comprising this stub to EJB server.
Here, first mark of stub is considered as the identity of stub, can find the EJB service of correspondence according to the first of stub the mark.
Step S110, judge whether described stub lost efficacy; If so, step S120 is then performed;
Specifically, the application EJB server is after receiving EJB service invocation request, it is judged that whether the stub in request lost efficacy. Hereafter related introduction is referred to for inefficacy judge process.
Step S120, the target stub that acquisition is identical with first mark of described stub in preset stub set;
Specifically, if above-mentioned steps judges that stub lost efficacy, then mean that EJB service corresponding in EJB server is heavily disposed, EJB server stores the first mark having up-to-date stub, this stub identical with first mark of the stub that client sends the inefficacy come after heavily disposing. Therefore, this step obtains the target stub identical with first mark of the stub that client sends in the stub set that EJB server is preset.
Step S130, call corresponding with described target stub EJB service, and feed back to described client.
The target stub that previous step gets is up-to-date stub, utilizes this stub can call the EJB service of correspondence, and by the EJB service feedback called to client, it is ensured that the normal service of client is called.
The service calling method being applied to EJB server that the embodiment of the present application provides, receive the EJB service invocation request that client sends, this request comprises the counterfoil stub corresponding with EJB to be called service that client arrives at local search, and stub carries the first mark, further EJB server judges whether described stub lost efficacy, if, the target stub that then inquiry is identical with first mark of described stub in preset stub set, call the EJB service corresponding with described target stub, and feed back to described client. Use the application scheme, the stub that client is first provided by EJB server after receiving EJB service invocation request carries out ineffectiveness judgement, if EJB service corresponding for stub redeploys, then determine that this stub lost efficacy, and then the stub of identical first mark in inquiry EJB server, the stub inquired is utilized to call EJB service, and feed back to client, even if client carries out EJB service call without occurring owing to EJB services the problem that the client heavily disposed and cause cannot successfully be called according to singleton pattern.
It is the disclosed another kind of service calling method flow chart of the embodiment of the present application referring to Fig. 2, Fig. 2.
As in figure 2 it is shown, the method includes:
The EJB service invocation request that step S200, reception client send;
Wherein, described EJB service invocation request comprises counterfoil stub, and described stub carries the first mark.
Specifically, instruction is read in the EJB service of client end response user, the corresponding relation between the first mark according to preset EJB service and counterfoil stub, identify the stub corresponding with EJB to be read service at local search first, and then send the EJB service invocation request comprising this stub to EJB server.
Here, first mark of stub is considered as the identity of stub, can find the EJB service of correspondence according to the first of stub the mark.
Step S210, judge whether described stub lost efficacy; If so, step S220 is then performed;
Specifically, the application EJB server is after receiving EJB service invocation request, it is judged that whether the stub in request lost efficacy. Hereafter related introduction is referred to for inefficacy judge process.
Step S220, the target stub that acquisition is identical with first mark of described stub in preset stub set;
Specifically, if above-mentioned steps judges that stub lost efficacy, then mean that EJB service corresponding in EJB server is heavily disposed, EJB server stores the first mark having up-to-date stub, this stub identical with first mark of the stub that client sends the inefficacy come after heavily disposing. Therefore, this step obtains the target stub identical with first mark of the stub that client sends in the stub set that EJB server is preset.
Step S230, call corresponding with described target stub EJB service, and feed back to described client;
The target stub that previous step gets is up-to-date stub, utilizes this stub can call the EJB service of correspondence, and by the EJB service feedback called to client, it is ensured that the normal service of client is called.
Step S240, described target stub is fed back to described client, utilize described target stub to replace the stub of existing identical first mark for described client.
It should be noted that the order of step S240 and step S230 can intermodulation.
Compared to above-described embodiment, target stub, when judging that stub lost efficacy, while the EJB service called to client feedback, is also fed back to client by the present embodiment, client utilize this target stub to replace the stub of existing identical first mark. That is, utilize target stub to replace the stub lost efficacy. So, subsequent client asks identical EJB that target stub can be utilized when servicing to directly invoke again, it is not necessary to EJB server repeats above-mentioned steps S220, obtains the target stub identical with first mark of described stub in preset stub set.
It is the embodiment of the present application another service calling method flow chart disclosed referring to Fig. 3, Fig. 3.
As it is shown on figure 3, the method includes:
The EJB service invocation request that step S300, reception client send;
Wherein, described EJB service invocation request comprise counterfoil stub, described stub carry the first mark and second mark.
Specifically, instruction is read in the EJB service of client end response user, the corresponding relation between the first mark according to preset EJB service and counterfoil stub, identify the stub corresponding with EJB to be read service at local search first, and then send the EJB service invocation request comprising this stub to EJB server.
Here, first mark of stub is considered as the identity of stub, can find the EJB service of correspondence according to the first of stub the mark.
Second mark of stub is used for showing whether stub lost efficacy. When an EJB service is initially generated, relevant to EJB service according to the second of the stub that this EJB service creation is corresponding, the stub of generation the mark, after redeploying EJB service, second mark of the stub regenerated will produce change. Further illustrating, first mark of the stub regenerated will not produce change.
Step S310, the target stub that inquiry is identical with first mark of described stub in preset stub set;
Step S320, judge second mark of described target stub with the second of described stub identify whether identical; If so, step S330 is performed, if it is not, perform step S340;
Step S330, determine that described stub did not lose efficacy;
Step S340, determine that described stub lost efficacy;
As it was previously stated, the first mark that EJB service redeploys rear corresponding stub will not change, the second mark will change. Therefore, the stub of identical first mark in stub and the EJB server that contrast client sends, it is judged that the two second identifies whether identical, if the same thinks that the stub that client sends did not lose efficacy, otherwise, then it is assumed that the stub that client sends lost efficacy.
Step S350, obtain described target stub;
Specifically, when determining that described stub lost efficacy, obtain target stub.
Step S360, call corresponding with described target stub EJB service, and feed back to described client.
The target stub that previous step gets is up-to-date stub, utilizes this stub can call the EJB service of correspondence, and by the EJB service feedback called to client, it is ensured that the normal service of client is called.
The present embodiment describes in detail a kind of stub of judgement alternative whether lost efficacy, certainly, in addition can also there is other judgment mode, referring to next embodiment.
It is the embodiment of the present application another service calling method flow chart disclosed referring to Fig. 4, Fig. 4.
As shown in Figure 4, the method includes:
The EJB service invocation request that step S400, reception client send;
Wherein, described EJB service invocation request comprises counterfoil stub, and described stub carries the first mark.
Specifically, instruction is read in the EJB service of client end response user, the corresponding relation between the first mark according to preset EJB service and counterfoil stub, identify the stub corresponding with EJB to be read service at local search first, and then send the EJB service invocation request comprising this stub to EJB server.
Here, first mark of stub is considered as the identity of stub, can find the EJB service of correspondence according to the first of stub the mark.
Step S410, utilize described stub to call the EJB service of correspondence, and judge whether to call successfully;
If successfully calling, then performing step S420, if never call success, then performing step S430;
Step S420, determine that described stub did not lose efficacy;
Step S430, determine that described stub lost efficacy;
Specifically, Enterprise Java Bean container in EJB server can catch the exception produced when calling EJB service, if different normally due to the exception of the unmatched NoSuchEJBException type of stub in stub and the EJB server causing client is heavily disposed in EJB service, then may determine that the stub of client lost efficacy.
Step S440, the target stub that acquisition is identical with first mark of described stub in preset stub set;
Specifically, if judging, stub lost efficacy, then mean that EJB service corresponding in EJB server is heavily disposed, EJB server stores the first mark having up-to-date stub, this stub identical with first mark of the stub that client sends the inefficacy come after heavily disposing. Therefore, this step obtains the target stub identical with first mark of the stub that client sends in the stub set that EJB server is preset.
Step S450, call corresponding with described target stub EJB service, and feed back to described client.
The target stub that previous step gets is up-to-date stub, utilizes this stub can call the EJB service of correspondence, and by the EJB service feedback called to client, it is ensured that the normal service of client is called.
The present embodiment provides another kind and judges the stub mode whether lost efficacy.
A kind of service call device below the embodiment of the present application provided is described, and service call device described below and above-described service calling method can mutually to should refer to.
It is the disclosed a kind of service call apparatus structure schematic diagram of the embodiment of the present application referring to Fig. 5, Fig. 5.
As it is shown in figure 5, this device includes:
Service invocation request receives unit 51, and for receiving the EJB service invocation request that client sends, described EJB service invocation request comprises counterfoil stub, and described stub carries the first mark;
Stub inefficacy judging unit 52, is used for judging whether described stub lost efficacy;
Target stub acquiring unit 53, for when judging that described stub lost efficacy, obtaining the target stub identical with first mark of described stub in preset stub set;
Service call unit 54, for calling the EJB service corresponding with described target stub, and feeds back to described client.
The service call device being applied to EJB server that the embodiment of the present application provides, receive the EJB service invocation request that client sends, this request comprises the counterfoil stub corresponding with EJB to be called service that client arrives at local search, and stub carries the first mark, further EJB server judges whether described stub lost efficacy, if, the target stub that then inquiry is identical with first mark of described stub in preset stub set, call the EJB service corresponding with described target stub, and feed back to described client. Use the application scheme, the stub that client is first provided by EJB server after receiving EJB service invocation request carries out ineffectiveness judgement, if EJB service corresponding for stub redeploys, then determine that this stub lost efficacy, and then the stub of identical first mark in inquiry EJB server, the stub inquired is utilized to call EJB service, and feed back to client, even if client carries out EJB service call without occurring owing to EJB services the problem that the client heavily disposed and cause cannot successfully be called according to singleton pattern.
Optionally, this device can also include:
Target stub feedback unit, for when judging that described stub lost efficacy, described target stub being fed back to described client, utilizes described target stub to replace the stub of existing identical first mark for described client.
Optionally, described stub can also carry the second mark, then described stub inefficacy judging unit may include that
Target stub query unit, for the target stub that inquiry in preset stub set is identical with first mark of described stub;
Second mark judging unit, second for judging described target stub identifies second with described stub and identifies whether identical; If not, it is determined that described stub lost efficacy, if, it is determined that described stub did not lose efficacy.
Optionally, present invention also provides the optional structure of another kind of stub inefficacy judging unit, it may include that
Call result judging unit, for utilizing described stub to call the EJB service of correspondence, and judge whether to call successfully; If never call success, it is determined that described stub lost efficacy, if successfully calling, it is determined that described stub did not lose efficacy.
Further, present invention also provides a kind of service calling system, including client and EJB server, wherein:
Described client is used for, and instruction is read in the EJB service of response user, according to the corresponding relation between first mark of preset EJB service and counterfoil stub, identifies the stub corresponding with EJB to be read service at local search first; The EJB service invocation request comprising described stub is sent to described EJB server;
Described EJB server is used for, and receives described EJB service invocation request, it is judged that whether described stub lost efficacy; If so, then in preset stub set, the target stub identical with first mark of described stub is obtained; Call the EJB service corresponding with described target stub, and feed back to described client.
Finally, it can further be stated that, in this article, the relational terms of such as first and second or the like is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially. And, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include the process of a series of key element, method, article or equipment not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, article or equipment. When there is no more restriction, statement " including ... " key element limited, it is not excluded that there is also other identical element in including the process of described key element, method, article or equipment.
In this specification, each embodiment adopts the mode gone forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually referring to.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses the application. The multiple amendment of these embodiments be will be apparent from for those skilled in the art, and generic principles defined herein when without departing from spirit herein or scope, can realize in other embodiments. Therefore, the application is not intended to be limited to the embodiments shown herein, and is to fit to the widest scope consistent with principles disclosed herein and features of novelty.

Claims (9)

1. a service calling method, it is characterised in that being applied to EJB server, the method includes:
Receiving the EJB service invocation request that client sends, described EJB service invocation request comprises counterfoil stub, and described stub carries the first mark;
Judge whether described stub lost efficacy;
If so, then in preset stub set, the target stub identical with first mark of described stub is obtained;
Call the EJB service corresponding with described target stub, and feed back to described client.
2. method according to claim 1, it is characterised in that also include:
When judging that described stub lost efficacy, described target stub is fed back to described client, utilize described target stub to replace the stub of existing identical first mark for described client.
3. method according to claim 1 and 2, it is characterised in that described stub also carries the second mark, described judges whether described stub lost efficacy, including:
The target stub that inquiry is identical with first mark of described stub in preset stub set;
Judge that second mark of described target stub and the second of described stub identify whether identical;
If not, it is determined that described stub lost efficacy, if, it is determined that described stub did not lose efficacy.
4. method according to claim 1 and 2, it is characterised in that described judge whether described stub lost efficacy, including:
Utilize described stub to call the EJB service of correspondence, and judge whether to call successfully;
If never call success, it is determined that described stub lost efficacy, if successfully calling, it is determined that described stub did not lose efficacy.
5. a service call device, it is characterised in that be applied to EJB server, this device includes:
Service invocation request receives unit, and for receiving the EJB service invocation request that client sends, described EJB service invocation request comprises counterfoil stub, and described stub carries the first mark;
Stub inefficacy judging unit, is used for judging whether described stub lost efficacy;
Target stub acquiring unit, for when judging that described stub lost efficacy, obtaining the target stub identical with first mark of described stub in preset stub set;
Service call unit, for calling the EJB service corresponding with described target stub, and feeds back to described client.
6. device according to claim 5, it is characterised in that also include:
Target stub feedback unit, for when judging that described stub lost efficacy, described target stub being fed back to described client, utilizes described target stub to replace the stub of existing identical first mark for described client.
7. the device according to claim 5 or 6, it is characterised in that described stub also carries the second mark, and described stub inefficacy judging unit includes:
Target stub query unit, for the target stub that inquiry in preset stub set is identical with first mark of described stub;
Second mark judging unit, second for judging described target stub identifies second with described stub and identifies whether identical; If not, it is determined that described stub lost efficacy, if, it is determined that described stub did not lose efficacy.
8. the device according to claim 5 or 6, it is characterised in that described stub inefficacy judging unit includes:
Call result judging unit, for utilizing described stub to call the EJB service of correspondence, and judge whether to call successfully; If never call success, it is determined that described stub lost efficacy, if successfully calling, it is determined that described stub did not lose efficacy.
9. a service calling system, it is characterised in that include client and EJB server, wherein:
Described client is used for, and instruction is read in the EJB service of response user, according to the corresponding relation between first mark of preset EJB service and counterfoil stub, identifies the stub corresponding with EJB to be read service at local search first; The EJB service invocation request comprising described stub is sent to described EJB server;
Described EJB server is used for, and receives described EJB service invocation request, it is judged that whether described stub lost efficacy; If so, then in preset stub set, the target stub identical with first mark of described stub is obtained; Call the EJB service corresponding with described target stub, and feed back to described client.
CN201610104991.7A 2016-02-25 2016-02-25 A kind of service calling method, apparatus and system Active CN105656929B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610104991.7A CN105656929B (en) 2016-02-25 2016-02-25 A kind of service calling method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610104991.7A CN105656929B (en) 2016-02-25 2016-02-25 A kind of service calling method, apparatus and system

Publications (2)

Publication Number Publication Date
CN105656929A true CN105656929A (en) 2016-06-08
CN105656929B CN105656929B (en) 2019-03-15

Family

ID=56488631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610104991.7A Active CN105656929B (en) 2016-02-25 2016-02-25 A kind of service calling method, apparatus and system

Country Status (1)

Country Link
CN (1) CN105656929B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106778306A (en) * 2016-12-16 2017-05-31 国云科技股份有限公司 A kind of Permission Design method based on JavaEJB frameworks
CN109088905A (en) * 2017-06-14 2018-12-25 浙江贵仁信息科技股份有限公司 A kind of mathematical model service system and mathematical model management method based on cloud computing
CN110162386A (en) * 2019-04-04 2019-08-23 口碑(上海)信息技术有限公司 A kind of mission dispatching method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101236510A (en) * 2008-02-22 2008-08-06 深圳市金蝶中间件有限公司 EJB cluster failure recovery processing method and system
CN101631033A (en) * 2008-07-14 2010-01-20 中兴通讯股份有限公司 Method, system, server and client for calling remote component
CN102255872A (en) * 2010-05-19 2011-11-23 深圳市金蝶中间件有限公司 Method and device for accessing non-remote object

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101236510A (en) * 2008-02-22 2008-08-06 深圳市金蝶中间件有限公司 EJB cluster failure recovery processing method and system
CN101631033A (en) * 2008-07-14 2010-01-20 中兴通讯股份有限公司 Method, system, server and client for calling remote component
CN102255872A (en) * 2010-05-19 2011-11-23 深圳市金蝶中间件有限公司 Method and device for accessing non-remote object

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106778306A (en) * 2016-12-16 2017-05-31 国云科技股份有限公司 A kind of Permission Design method based on JavaEJB frameworks
CN109088905A (en) * 2017-06-14 2018-12-25 浙江贵仁信息科技股份有限公司 A kind of mathematical model service system and mathematical model management method based on cloud computing
CN109088905B (en) * 2017-06-14 2021-04-30 浙江贵仁信息科技股份有限公司 Mathematical model service system based on cloud computing and mathematical model management method
CN110162386A (en) * 2019-04-04 2019-08-23 口碑(上海)信息技术有限公司 A kind of mission dispatching method and device
CN110162386B (en) * 2019-04-04 2021-05-18 口碑(上海)信息技术有限公司 Task issuing method and device

Also Published As

Publication number Publication date
CN105656929B (en) 2019-03-15

Similar Documents

Publication Publication Date Title
CN107317830B (en) Service discovery processing method and device
JP4729172B2 (en) Method and apparatus for performing transactions in a stateless web environment that supports a declarative paradigm
CN1649324B (en) Method and apparatus for operating an open API network having a proxy
CN103312549B (en) A kind of office management method and device and system
CN105656929A (en) Service calling method, device and system
CN110557357A (en) remote procedure call protocol self-adaption method, related device and server
CN111970359B (en) Front-end non-service architecture system based on node
CN104539713A (en) Service request processing method and device
CN100479458C (en) Method, system, and apparatus for scheduling pattern based web services
CN110290168A (en) Data transmission method for uplink, device, server and storage medium
CN106161519A (en) A kind of information getting method and device
US20200310828A1 (en) Method, function manager and arrangement for handling function calls
CN107391221B (en) Scheduling server, compiling server and distributed compiling method
CN113094395B (en) Data query method, computer device and storage medium
CN111737028B (en) Dubbo service detection method and device
CN114285852A (en) Service calling method and device based on multi-stage service platform
CN100401259C (en) Method for providing service in distribution type service system
US20060004783A1 (en) Dynamic binding of principal services in a cross-enterprise business process management system
CN112333270B (en) Method and system for dynamic routing of micro-services
CN112486698A (en) Micro-service access method and related device
CN101247401B (en) State machine processing method and device based on message driving
CN114968191A (en) Research and development project and tool docking method and device, electronic equipment and storage medium
CN114356596A (en) Message processing method and device for distributed system
CN108052380B (en) Business function docking method and device, computer equipment and storage medium
CN112162797A (en) Data processing method, system, storage medium and electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant