Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method and device for interaction between front-end javascript and local java application

A technology of java application and interaction method, applied in the direction of program control device, instrument, program control design, etc., can solve the problems of increased development complexity, waste of manpower and material resources, and high economic cost, to simplify development complexity, reduce communication costs, The effect of improving communication efficiency

Active Publication Date: 2021-11-05
天津市天科数创科技股份有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In the current B / S interaction technology, if the front-end JavaScript interacts with local Java applications, it must be realized through middleware. The problem brought about by this is that when the system cannot be directly deployed on the network, each client needs a supporting Middleware not only has high economic costs, but also increases the development complexity accordingly, wasting a lot of manpower and material resources

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
  • A method and device for interaction between front-end javascript and local java application
  • A method and device for interaction between front-end javascript and local java application
  • A method and device for interaction between front-end javascript and local java application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] It should be noted that, in the case of no conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other.

[0032] The present invention will be described in detail below with reference to the accompanying drawings and examples.

[0033] Such as figure 1 As shown, the steps involved in the present invention are described, specifically as follows:

[0034] S1. Java-based SP service registration is performed when the custom browser framework is started, including front-end JavaScript-receiving interface services, message encapsulation services, and message parsing services based on JSON-based front-end and back-end interaction proprietary protocols;

[0035] S2. The front-end JavaScript encapsulates the command and parameters used for the request into a message body according to the front-end interaction proprietary protocol based on the JSON specification, and sends the encapsulated message body to the back-end by...

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

The present invention provides a kind of interaction method and device of front-end JavaScript and local Java application, comprise the following steps: S1, carry out the SPI service registration based on Java when the self-defined browser framework starts, including front-end and back-end interaction proprietary protocol based on JSON specification Interface service, message encapsulation service and message analysis service for receiving front-end JavaScript requests. Beneficial effects of the present invention: a method and device for interaction between front-end JavaScript and local Java applications effectively solves the problem that middleware is needed when front-end JavaScript interacts with local Java applications, and can greatly reduce system construction costs when deployed on a single machine. The development device provided by the invention reduces the development difficulty and improves the development efficiency.

Description

technical field [0001] The invention belongs to the technical field of software development, and in particular relates to an interaction method and device for front-end JavaScript and local Java applications. Background technique [0002] In the current B / S interaction technology, if the front-end JavaScript interacts with local Java applications, it must be realized through middleware. The problem brought about by this is that when the system cannot be directly deployed on the network, each client needs a supporting Middleware not only has high economic costs, but also increases the development complexity accordingly, wasting a lot of manpower and material resources. Contents of the invention [0003] In view of this, the present invention aims to propose a method and device for interacting with front-end JavaScript and local Java applications, which realizes direct communication between the custom browser framework and local Java applications. In a special working envir...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/455G06F8/34G06F8/30G06F8/38
CPCG06F9/45558G06F8/34G06F8/37G06F8/38G06F2009/45575
Inventor 杜春鹰王平健冯文霞刘润田田苗苗王雷曹雪龙徐爱臣张璐宇单峰郭洪涛申智锐
Owner 天津市天科数创科技股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products