CN103607324A - Data processing method, Java information client and server for Java information service - Google Patents

Data processing method, Java information client and server for Java information service Download PDF

Info

Publication number
CN103607324A
CN103607324A CN201310603873.7A CN201310603873A CN103607324A CN 103607324 A CN103607324 A CN 103607324A CN 201310603873 A CN201310603873 A CN 201310603873A CN 103607324 A CN103607324 A CN 103607324A
Authority
CN
China
Prior art keywords
message
data
java
messenger service
service client
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
CN201310603873.7A
Other languages
Chinese (zh)
Other versions
CN103607324B (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.)
Legendsec Technology (Beijing) Co.,Ltd.
Secworld Information Technology Beijing Co Ltd
Original Assignee
Netlegend Technology (beijing) Co Ltd
Secworld Information Technology Beijing 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 Netlegend Technology (beijing) Co Ltd, Secworld Information Technology Beijing Co Ltd filed Critical Netlegend Technology (beijing) Co Ltd
Priority to CN201310603873.7A priority Critical patent/CN103607324B/en
Publication of CN103607324A publication Critical patent/CN103607324A/en
Application granted granted Critical
Publication of CN103607324B publication Critical patent/CN103607324B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a data processing method, a Java information client and a server for Java information service. The data processing method for the Java information service comprises the steps that the Java information service client reads data information from an isolation board card; the Java information service client is connected with the Java information server; the Java information service client sends the read data information to the Java information server. Through the data processing method, the Java information client and the server, the effect of improving network application processing is achieved.

Description

Data processing method and Java information client side and server for Java messenger service
Technical field
The present invention relates to the communications field, in particular to a kind of data processing method for Java messenger service and Java information client side and server.
Background technology
At present, increasing enterprise is faced with various data integrations and system combination, and according to data confidentiality requirement, generally to guarantee that the data in High Security Level network do not flow to Low Security Level network, and guarantee that the data in Low Security Level network can flow to High Security Level network, and once data flow Low Security Level network in High Security Level network just easily causes the leakage of the High Security Level network information.
In order to prevent the High Security Level network information, reveal, in the relevant programme of correlation technique, general Common Object Request Broker Architecture (the Commom Object Request Broker Architecture that adopts, be called for short CORBA) and DCOM (Distributed Component Object Model, be called for short DCOM) etc. remote procedure call protocol (Remote Procedure Call, abbreviation RPC) middleware Technology prevents that to serve as unidirectional peace isolation gap the High Security Level network information from flowing to Low Security Level network, the RPC of such scheme is owing to all adopting synchronous treatment technology, therefore not only there is the shortcoming of robustness and extensibility aspect in RPC, and there is the lower shortcoming of Message Processing efficiency.
And message based asynchronous process model adopts the recall feature of unblock, first sender sends to message server by message, then message server is transmitted to recipient in the suitable time by message, like this, message sends and message sink is asynchronous, the message receiving end that transmitting terminal sends without wait receives, and the life cycle of transmitting terminal and receiving terminal can be not identical yet, in addition, transmitting terminal can send to a plurality of receiving terminals indirectly by message, this has not only improved robustness and the extensibility of system, and asynchronous process model has more high efficiency compared with synchronous transaction module in Distributed Application.Java messenger service (Java Message Service, abbreviation JMS) provide a kind of efficient asynchronous message processing scheme, greatly promoted the application treatment effeciency of business, but current one-way safety isolation gap cannot be realized the support to JMS applied business.
For one-way safety isolation gap in correlation technique, cannot realize the problem that application JMS carries out internet message asynchronous process, not yet propose at present effective solution.
Summary of the invention
Main purpose of the present invention is to provide a kind of data processing method for Java messenger service and Java information client side and server, to solve one-way safety isolation gap in correlation technique, cannot realize the problem that application JMS carries out internet message asynchronous process.
To achieve these goals, according to an aspect of the present invention, provide a kind of data processing method for Java messenger service.Should comprise for the data processing method of Java messenger service: Java messenger service client is from isolation board read data information; Java messenger service client and Java message server connect; And Java messenger service client is sent to Java message server by the data message reading.
Further, Java messenger service client comprises from isolation board read data information: Java messenger service client is from isolation board reading out data message; Java messenger service client is processed data-message, peels off the protocol entity of data-message, obtains type of message and the message body of data-message; And Java messenger service client is when sending message body, continues from isolation board reading out data message.
Further, in Java messenger service client, data-message is processed, peel off the protocol entity of data-message, after obtaining the type of message of data-message, data processing method also comprises: Java messenger service client is carried out asynchronous operation according to type of message; If type of message is for connecting, Java messenger service client is set up and being connected of Java message server, and at data-messages to be sent such as success are rear; And if type of message is that data send, Java messenger service client is directly sent to data-message Java message server.
To achieve these goals, according to another aspect of the present invention, provide a kind of data processing method for Java messenger service.Should comprise for the data processing method of Java messenger service: Java message server receives the data message from Java messenger service client, wherein, Java messenger service client is from isolation board read data information, connect with Java message server, and the data message reading is sent to Java message server; And Java message server is processed the data message receiving.
Further, before Java message server receives the data message from Java messenger service client, data processing method also comprises: Java message server is monitored the connection of Java messenger service client; Java message server is after listening to the successful connection of Java messenger service client, and notification filter server is waited for the data message receiving from Java messenger service client; And Java message server is in notice, continues to carry out and monitors.
Further, after Java message server is listening to the successful connection of Java messenger service client, data processing method also comprises: Java message server is to the data message sending from Java messenger service client receiving, carry out agreement and peel off, and the data after agreement is peeled off are carried out legitimacy check; If the data that verification goes out agreement after peeling off are illegal, close described connection.
To achieve these goals, according to a further aspect in the invention, provide a kind of Java messenger service client.This Java messenger service client comprises: reading unit, for from isolation board read data information; Linkage unit, for connecting with Java message server; And transmitting element, for the data message reading is sent to Java message server.
Further, reading unit comprises: read module, for from described isolation board reading out data message; And processing module, for data-message is processed, peel off the protocol entity of data-message, obtain the type of message of data-message, wherein, read module, also for when sending type of message, continues from isolation board reading out data message.
Further, this Java messenger service client also comprises: asynchronous operation unit, for carrying out asynchronous operation according to type of message; Wherein, transmitting element at type of message when connecting, set up and being connected of Java message server, and after success etc. described data-message to be sent, when type of message is data transmission, directly data-message is sent to Java message server.
To achieve these goals, according to a further aspect in the invention, provide a kind of Java message server.This Java message server comprises: receiving element, for receiving the data message from Java messenger service client, wherein, Java messenger service client is from isolation board read data information, connect with Java message server, and the data message reading is sent to Java message server; And processing unit, for Java message server, the data message receiving is processed.
Further, this Java message server also comprises: monitoring unit, and before receiving the data message from Java messenger service client at Java message server, the connection of monitoring Java messenger service client; Notification unit, for after listening to the successful connection of Java messenger service client, notification filter server is waited for the data message receiving from Java messenger service client; And wherein, monitoring unit, also in notice, continues to carry out and monitors.
Further, this Java message server also comprises: verification unit, for after Java message server is listening to the successful connection of Java messenger service client, to the data message sending from Java messenger service client receiving, carry out agreement and peel off, and the data after agreement is peeled off are carried out legitimacy check; Closing unit, when illegal for the data after going out agreement in verification and peeling off, closes connection.
By the present invention, adopt Java messenger service client from isolation board read data information; Java messenger service client and Java message server connect; And Java messenger service client is sent to Java message server by the data message reading, solve in correlation technique one-way safety isolation gap and cannot realize application JMS and carry out the problem of internet message asynchronous process, and then reached the effect that improves the usefulness that network application processes.
Accompanying drawing explanation
The accompanying drawing that forms the application's a part is used to provide a further understanding of the present invention, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is according to the flow chart of the data processing method for Java messenger service of first embodiment of the invention;
Fig. 2 is according to the flow chart of the data processing method for Java messenger service of second embodiment of the invention;
Fig. 3 is according to the flow chart of the data processing method for Java messenger service of third embodiment of the invention;
Fig. 4 is according to the flow chart of the data processing method for Java messenger service of fourth embodiment of the invention;
Fig. 5 is according to the schematic diagram of the Java messenger service client of first embodiment of the invention;
Fig. 6 is according to the schematic diagram of the Java messenger service client of second embodiment of the invention;
Fig. 7 is according to the schematic diagram of the Java message server of first embodiment of the invention; And
Fig. 8 is according to the schematic diagram of the Java message server of second embodiment of the invention.
Embodiment
It should be noted that, in the situation that not conflicting, embodiment and the feature in embodiment in the application can combine mutually.Describe below with reference to the accompanying drawings and in conjunction with the embodiments the present invention in detail.
In order to make those skilled in the art better understand the present invention program, below in conjunction with the accompanying drawing in the embodiment of the present invention, to being clearly and completely described in the embodiment of the present invention, obviously, described embodiment is only the embodiment of a part of the present invention, rather than whole embodiment.Embodiment based in the present invention, does not make the every other embodiment obtaining under creative work prerequisite those of ordinary skills, all should belong to protection scope of the present invention.
It should be noted that, the term " first " in specification of the present invention and claims and above-mentioned accompanying drawing, " second " etc. are for distinguishing similar object, and needn't be for describing specific order or precedence.The data that should be appreciated that such use suitably can exchanged in situation, so as embodiments of the invention described herein can with except diagram here or describe those order enforcement.In addition, term " comprises " and " having " and their any distortion, is intended to be to cover not exclusive comprising.
According to embodiments of the invention, provide a kind of data processing method for Java messenger service, the usefulness that should process to improve network application for asynchronous processing network message for the data processing method of Java messenger service.Should may operate in computer-processing equipment for the data processing method of Java messenger service.
It should be noted that ,Dui Yige enterprise, generally can apply non-trust network and trust network, wherein, non-trust network is extranet network, is called for short outer net, and trust network is Intranet, is called for short Intranet.In order to guarantee the unidirectional inflow Intranet of outer net information, in embodiments of the present invention, between JMS client and JMS server, be provided with light one-way safety shielding system.Wherein, light one-way safety shielding system can comprise the JMS message producer in JMS information consumption person, isolation board and the Intranet in outer net.JMS information consumption person can serve as virtual JMS server, and JJMS client and this virtual JMS server can form a client-server group 1, the JMS message producer can serve as virtual JMS client, and this virtual JMS client and JMS server can form a client-server group 2, and client-server group 1 and client-server group 2 form JMS client, light one-way safety shielding system and JMS server.
It should be noted that, below by Java messenger service client, replace the virtual JMS client in client-server group 2, with Java message server, replace the JMS server in client-server group 2.
Fig. 1 is according to the flow chart of the data processing method for Java messenger service of first embodiment of the invention.
As shown in Figure 1, the method comprises that following step S101 is to step S103:
Step S101, Java messenger service client is from isolation board read data information.
In embodiments of the present invention, in Java messenger service client, from before isolation board read data information, the effect of the client-server group 1 that data message can be by is as shown in Figure 1 ferried on isolation board.
Particularly, first the JMS client in client-server group 1 sends data message to virtual JMS server, it should be noted that, JMS client does not need to wait for virtual JMS server feedback information and can continue to virtual JMS server to send next data message after virtual JMS server sends data message, like this, reduce the stand-by period of JMS client, improved the efficiency of JMS client transmission data message.In JMS client after virtual JMS server sends data message, first virtual JMS server can build the agreement interface channel with JMS client, then the data message that asynchronous reception JMS client sends, then again the data message receiving is carried out to agreement and peel off, and peel off and judge that whether data message is legal by agreement.When virtual JMS server, judge data message when legal, data message is ferried on isolation board, otherwise virtual JMS server is judged data message when illegal, shadow data information.Like this, can guarantee that data message way flow is as corporate intranet, the confidential information of having avoided enterprises flows to outer net and causes the leakage of confidential information.
It should be noted that, virtual JMS server can be asynchronous the data message that sends of reception JMS client, like this, virtual JMS server, without waiting for JMS client, has improved the receiving efficiency of data message, and then has improved the effectiveness of whole system.
It should be noted that, in embodiments of the present invention, data message is protocol entity data, data message carries out agreement can comprise protocol data head and JMS message body after peeling off, wherein, protocol data head is protocol entity, and this protocol data head sends the object of data message for describing JMS client, and protocol data head is for the data type of characterization data information, and JMS message body is for the function of data of description information itself.By agreement peel off judge data message whether legal can be by agreement, to peel off the protocol data head obtaining to judge that whether data message legal.Wherein, particularly, protocol data head and the preset protocol data head being stored in the presets list can be contrasted one by one, when protocol data head be stored in preset protocol data head in the presets list when identical, judge data message legal, otherwise when protocol data head be stored in preset protocol data head in the presets list when not identical, judge data message illegal.Like this, the data message storing on isolation board is legal information, and data message comprises protocol data head and JMS message body.
In embodiments of the present invention, Java messenger service client from isolation board read data information can be asynchronous random read data information or according to data information memory to the asynchronous read data information of time sequencing isolation board.
Step S102, Java messenger service client and Java message server connect.
In embodiments of the present invention, with similar in client-server group 1, Java message server can build the agreement interface channel with JMS client, and then sets up and be connected to carry out transfer of data between Java messenger service client and Java message server.
Step S103, Java messenger service client is sent to Java message server by the data message reading.
In embodiments of the present invention, it can be that Java messenger service client is sent to Java message server by the asynchronous data message reading of the data message reading that Java messenger service client is sent to Java message server by the data message reading, like this, improve the transmitting efficiency of data message, and then improved the effectiveness of whole system.
By the embodiment of the present invention, guaranteed that outer net is to the unidirectional inflow of the data message of Intranet, and data message can asynchronous transmission and reception, has improved the sending and receiving efficiency of data message, and then has improved the effectiveness of whole system.
Fig. 2 is according to the flow chart of the data processing method for Java messenger service of second embodiment of the invention.
As shown in Figure 2, should comprise that following step S201 was to step S205 for the data processing method of Java messenger service, this embodiment can be used as preferred implementation embodiment illustrated in fig. 1.
Step S201, Java messenger service client is from isolation board reading out data message.
In embodiments of the present invention, because the virtual JMS server stores in client-server group 1 is protocol entity data message to the data message on isolation board, so Java messenger service client is protocol entity data-message from isolation board reading out data message.Wherein, protocol entity data-message can comprise protocol entity and JMS message body after peeling off through agreement, and protocol entity is for the data type of characterization data message.Protocol entity can be the first field of data-message, and protocol entity can binary coding representation, the binary coding of the first field of the data-message that different protocol entities is corresponding is different, in addition, the all right corresponding unique identifier of protocol entity, this sign also can be for identifying corresponding protocol entity.
Step S202, Java messenger service client is processed data-message, peels off the protocol entity of data-message, obtains the type of message of data-message.
It should be noted that, in Java messenger service client after isolation board reading out data message, data message can be carried out to the agreement of protocol entity and JMS message body peels off, wherein, the data type of protocol entity corresponding data message, can be whether legal for judging JMS message body, when data type is legal data type, Java messenger service client can be sent to Java message server by corresponding data message, otherwise when data type is illegal data type, Java messenger service client can not be sent to Java message server by corresponding data message.Preferably, Java messenger service client can only partly be sent to Java message server by the JMS message body of legal data message, like this, not only can retain the functional attributes of JMS message body itself, and can save the memory space of Java message server.
It should be noted that, after step S202, should can also comprise for the data processing method of Java messenger service:
Step 11, Java messenger service client is carried out asynchronous operation according to type of message.
Step 12, if type of message is for connecting, Java messenger service client is set up and being connected of Java message server, and at data-messages to be sent such as success are rear.
Step 13, sends if type of message is data, and Java messenger service client is directly sent to data-message Java message server.
It should be noted that, Java message server can be forwarded to data message one or more user after will receiving data-message in embodiments of the present invention.
Step S203, Java messenger service client, when sending JMS message body, continues from isolation board reading out data message.
Step S204 and step S205, with step S102 embodiment illustrated in fig. 2 and step S103, do not repeat them here respectively.
Like this, need not wait for the feedback information of Java message server, save the stand-by period of Java messenger service client, improve Java messenger service client and read and send the efficiency of data message, and then improved the effectiveness of whole system.
Fig. 3 is according to the flow chart of the data processing method for Java messenger service of third embodiment of the invention.
As shown in Figure 3, the method comprises that following step S301 is to step S302:
Step S301, Java message server receives the data message from Java messenger service client.
In embodiments of the present invention, the data message that Java message server receives from Java messenger service client can be to receive the data message reading from isolation board from Java messenger service client, and Java message server by with Java information client side between set up be connected the data message receiving from Java messenger service client.Before Java message server receives the data message from Java messenger service client, the effect of the client-server group 1 that data message can be by is as shown in Figure 1 ferried on isolation board.
Particularly, first virtual JMS server receives the data message that the JMS client in client-server group 1 sends, it should be noted that, virtual JMS server receives the data message of JMS client transmission afterwards not to JMS client feedback information, and can continue to receive next data message, like this, reduce the stand-by period of virtual JMS server, improved the efficiency of virtual JMS server receiving data information.After virtual JMS server receives the data message of JMS client transmission, first virtual JMS server can build the agreement interface channel with JMS client, then the data message that asynchronous reception JMS client sends, then again the data message receiving is carried out to agreement and peel off, and peel off and judge that whether data message is legal by agreement.When virtual JMS server, judge data message when legal, data message is ferried on isolation board, otherwise virtual JMS server is judged data message when illegal, shadow data information.Like this, can guarantee that data message way flow is as corporate intranet, the confidential information of having avoided enterprises flows to outer net and causes the leakage of confidential information.
It should be noted that, virtual JMS server can be asynchronous the data message that sends of reception JMS client, like this, virtual JMS server, without waiting for JMS client, has improved the receiving efficiency of data message, and then has improved the effectiveness of whole system.
It should be noted that, in embodiments of the present invention, data message is protocol entity data, data message carries out agreement can comprise protocol data head and JMS message body after peeling off, wherein, protocol data head is protocol entity, and this protocol data head sends the object of data message for describing JMS client, and protocol data head is for the data type of characterization data information, and JMS message body is for the function of data of description information itself.By agreement peel off judge data message whether legal can be by agreement, to peel off the protocol data head obtaining to judge that whether data message legal.Wherein, particularly, protocol data head and the preset protocol data head being stored in the presets list can be contrasted one by one, when protocol data head be stored in preset protocol data head in the presets list when identical, judge data message legal, otherwise when protocol data head be stored in preset protocol data head in the presets list when not identical, judge data message illegal.Like this, the data message storing on isolation board is legal information, and data message comprises protocol data head and JMS message body.
In embodiments of the present invention, Java message service server receive the data message that Java messenger service client reads from isolation board can be asynchronous random receiving data information or receive Java messenger service client asynchronous read according to data information memory to data message isolation board.Java messenger service client read data information and set up with Java message server between be connected after, Java message server can receive the data message from Java messenger service client.
Step S302, Java message server is processed the data message receiving.
In embodiments of the present invention, Java message server can carry out asynchronous forwarding to the data message receiving, and Java message server can be transmitted to one or more user by the data message receiving.
By the embodiment of the present invention, guaranteed that outer net is to the unidirectional inflow of the data message of Intranet, and data message can asynchronous transmission and reception, has improved the sending and receiving efficiency of data message, and then has improved the effectiveness of whole system.
Fig. 4 is according to the flow chart of the data processing method for Java messenger service of fourth embodiment of the invention.
As shown in Figure 4, should comprise that following step S401 was to step S405 for the data processing method of Java messenger service, this embodiment can be used as preferred implementation embodiment illustrated in fig. 3.
Step S401, Java message server is monitored the connection of Java messenger service client.
In embodiments of the present invention, the connection that Java message server is monitored Java messenger service client can be the connection request of monitoring Java messenger service client, when Java messenger service client is sent connection request and this connection request when legal, carry out being connected of Java message server and Java messenger service client, otherwise when the request of not sending of Java messenger service client or send connection request but this connection request when illegal, do not carry out being connected of Java message server and Java messenger service client.
In embodiments of the present invention, in embodiments of the present invention, due to the virtual JMS server stores in client-server group 1, to isolation, the data message on board is protocol entity data message, so the data-message that the Java messenger service client that receives of Java message server reads from isolation board is protocol entity data-message.Wherein, protocol entity data-message can comprise protocol entity and JMS message body after peeling off through agreement, and protocol entity is for the data type of characterization data message.Protocol entity can be the first field of data-message, and protocol entity can binary coding representation, the binary coding of the first field of the data-message that different protocol entities is corresponding is different, in addition, the all right corresponding unique identifier of protocol entity, this sign also can be for identifying corresponding protocol entity.
Java message server can be peeled off the protocol entity of data-message, obtains the type of message of data-message.For example, this type of message can comprise connection message type and send type of message.Like this, Java message server can judge whether to carry out data connection by monitoring the type of message of Java messenger service client transmission, when the data type listening to is connection message type, carry out being connected of Java message server and Java messenger service client, otherwise when the data type listening to is not when the connection message type, do not carry out being connected of Java message server and Java messenger service client.
Step S402, Java message server is after listening to the successful connection of Java messenger service client, and notification filter server is waited for the data message receiving from Java messenger service client.
Preferably, in embodiments of the present invention, after Java message server is listening to the successful connection of Java messenger service client, this data processing method also comprises:
Step 21, Java message server, to the data message sending from Java messenger service client receiving, carries out agreement and peel off, and the data after agreement is peeled off is carried out legitimacy check.
It should be noted that, in Java messenger service client after isolation board reading out data message, data message can be carried out to the agreement of protocol entity and JMS message body peels off, wherein, the data type of protocol entity corresponding data message, can be whether legal for judging JMS message body, when data type is legal data type, J notification filter server is waited for the data message receiving from Java messenger service client, otherwise when data type is illegal data type, do not notify filtering server to wait for the data message receiving from Java messenger service client.Preferably, Java message service server can only receive the JMS message body part of legal data message, like this, not only can retain the functional attributes of JMS message body itself, and can save the memory space of Java message server.
Step 22, if the data that verification goes out agreement after peeling off are illegal, closes connection.
Step S403, Java message server, in notice, continues to carry out described monitoring.
In embodiments of the present invention, the data message that Java message server receives the transmission of Java messenger service client can be the data message that the asynchronous reception of Java message server Java messenger service client sends, like this, improve the receiving efficiency of data message, and then improved the effectiveness of whole system.
Step S404 and step S405, with step S301 embodiment illustrated in fig. 3 and step S102, do not repeat them here respectively.
By the embodiment of the present invention, guaranteed that outer net is to the unidirectional inflow of the data message of Intranet, and data message can asynchronous transmission and reception, has improved the sending and receiving efficiency of data message, and then has improved the effectiveness of whole system.
It should be noted that, in the step shown in the flow chart of accompanying drawing, can in the computer system such as one group of computer executable instructions, carry out, and, although there is shown logical order in flow process, but in some cases, can carry out shown or described step with the order being different from herein.
According to embodiments of the invention, provide a kind of Java messenger service client, the usefulness that this Java messenger service client is processed to improve network application for asynchronous processing network message.It should be noted that, the Java messenger service client that the embodiment of the present invention provides can be for carrying out the data processing method for Java messenger service of the embodiment of the present invention, and the data processing method for Java messenger service of the embodiment of the present invention also can be brought in execution by the Java messenger service client of the embodiment of the present invention.
Fig. 5 is according to the schematic diagram of the Java messenger service client of first embodiment of the invention.
As shown in Figure 5, this Java messenger service client comprises reading unit 10, linkage unit 20 and transmitting element 30.
Reading unit 10 is for from isolation board read data information.In embodiments of the present invention, in Java messenger service client, from before isolation board read data information, the effect of the client-server group 1 that data message can pass through is ferried on isolation board.
Particularly, first the JMS client in client-server group 1 sends data message to virtual JMS server, it should be noted that, JMS client does not need to wait for virtual JMS server feedback information and can continue to virtual JMS server to send next data message after virtual JMS server sends data message, like this, reduce the stand-by period of JMS client, improved the efficiency of JMS client transmission data message.In JMS client after virtual JMS server sends data message, first virtual JMS server can build the agreement interface channel with JMS client, then the data message that asynchronous reception JMS client sends, then again the data message receiving is carried out to agreement and peel off, and peel off and judge that whether data message is legal by agreement.When virtual JMS server, judge data message when legal, data message is ferried on isolation board, otherwise virtual JMS server is judged data message when illegal, shadow data information.Like this, can guarantee that data message way flow is as corporate intranet, the confidential information of having avoided enterprises flows to outer net and causes the leakage of confidential information.
It should be noted that, virtual JMS server can be asynchronous the data message that sends of reception JMS client, like this, virtual JMS server, without waiting for JMS client, has improved the receiving efficiency of data message, and then has improved the effectiveness of whole system.
It should be noted that, in embodiments of the present invention, data message is protocol entity data, data message carries out agreement can comprise protocol data head and JMS message body after peeling off, wherein, protocol data head is protocol entity, and this protocol data head sends the object of data message for describing JMS client, and protocol data head is for the data type of characterization data information, and JMS message body is for the function of data of description information itself.By agreement peel off judge data message whether legal can be by agreement, to peel off the protocol data head obtaining to judge that whether data message legal.Wherein, particularly, protocol data head and the preset protocol data head being stored in the presets list can be contrasted one by one, when protocol data head be stored in preset protocol data head in the presets list when identical, judge data message legal, otherwise when protocol data head be stored in preset protocol data head in the presets list when not identical, judge data message illegal.Like this, the data message storing on isolation board is legal information, and data message comprises protocol data head and JMS message body.
In embodiments of the present invention, Java messenger service client by reading unit 10 from isolation board read data information can be asynchronous random read data information or according to data information memory to the asynchronous read data information of time sequencing isolation board.
Linkage unit 20 is for connecting with Java message server.In embodiments of the present invention, with similar in client-server group 1, Java message server can build the agreement interface channel with JMS client by linkage unit 20, and then sets up and be connected to carry out transfer of data between Java messenger service client and Java message server.
Transmitting element 30 is for being sent to Java message server by the data message reading.In embodiments of the present invention, it can be that Java messenger service client is sent to Java message server by the asynchronous data message reading of the data message reading that Java messenger service client is sent to Java message server by transmitting element 30 by the data message reading, like this, improve the transmitting efficiency of data message, and then improved the effectiveness of whole system.
By the embodiment of the present invention, guaranteed that outer net is to the unidirectional inflow of the data message of Intranet, and data message can asynchronous transmission and reception, has improved the sending and receiving efficiency of data message, and then has improved the effectiveness of whole system.
Fig. 6 is according to the schematic diagram of the Java messenger service client of second embodiment of the invention.
As shown in Figure 6, this embodiment can be used as preferred implementation embodiment illustrated in fig. 5, the Java messenger service client of this embodiment comprises reading unit 10, linkage unit 20 and the transmitting element 30 of the first embodiment, and wherein, reading unit 10 comprises read module 101 and processing module 102.
Identical with the first embodiment of the effect of linkage unit 20 and transmitting element 30, does not repeat them here.
Read module 101 is for from isolation board reading out data message.
In embodiments of the present invention, because the virtual JMS server stores in client-server group 1 is protocol entity data message to the data message on isolation board, so Java messenger service client is protocol entity data-message from isolation board reading out data message.Wherein, protocol entity data-message can comprise protocol entity and JMS message body after peeling off through agreement, and protocol entity is for the data type of characterization data message.Protocol entity can be the first field of data-message, and protocol entity can binary coding representation, the binary coding of the first field of the data-message that different protocol entities is corresponding is different, in addition, the all right corresponding unique identifier of protocol entity, this sign also can be for identifying corresponding protocol entity.
Processing module 102 is for processing data-message, peel off the protocol entity of data-message, obtain the type of message of data-message, wherein, read module, also for when type of message is sent to type of message, continues to read described data-message from isolation board.
It should be noted that, in Java messenger service client after isolation board reading out data message, data message can be carried out to the agreement of protocol entity and JMS message body peels off, wherein, the data type of protocol entity corresponding data message, can be whether legal for judging JMS message body, when data type is legal data type, Java messenger service client can be sent to Java message server by corresponding data message, otherwise when data type is illegal data type, Java messenger service client can not be sent to Java message server by corresponding data message.Preferably, Java messenger service client can only partly be sent to Java message server by the JMS message body of legal data message, like this, not only can retain the functional attributes of JMS message body itself, and can save the memory space of Java message server.
In embodiments of the present invention, this client can also comprise asynchronous operation unit, and this asynchronous operation unit is for carrying out asynchronous operation according to type of message.Wherein, transmitting element 30 at type of message when connecting, set up and being connected of Java message server, and after success etc. data-message to be sent, when type of message is data transmission, directly data-message is sent to Java message server.
It should be noted that, Java message server can be forwarded to data message one or more user after will receiving data-message in embodiments of the present invention.
Like this, need not wait for the feedback information of Java message server, save the stand-by period of Java messenger service client, improve Java messenger service client and read and send the efficiency of data message, and then improved the effectiveness of whole system.
According to embodiments of the invention, provide a kind of Java message server, the usefulness that this Java message server is processed to improve network application for asynchronous processing network message.It should be noted that, the Java message server that the embodiment of the present invention provides can be for carrying out the data processing method for Java messenger service of the embodiment of the present invention, and the data processing method for Java messenger service of the embodiment of the present invention also can be carried out by the Java message server of the embodiment of the present invention.
Fig. 7 is according to the schematic diagram of the Java message server of first embodiment of the invention.
As shown in Figure 7, this Java message server comprises receiving element 40 and processing unit 50.
Receiving element 40 is for receiving the data message from Java messenger service client.Wherein, Java messenger service client, from isolation board read data information, connects with Java message server, and the data message reading is sent to Java message server.
In embodiments of the present invention, the data message that Java message server receives from Java messenger service client can be to receive the data message reading from isolation board from Java messenger service client, and Java message server by with Java information client side between set up be connected the data message receiving from Java messenger service client.Before Java message server receives the data message from Java messenger service client, data message can by as the effect of client-server group 1 ferried on isolation board.
Particularly, first virtual JMS server receives the data message that the JMS client in client-server group 1 sends, it should be noted that, virtual JMS server receives the data message of JMS client transmission afterwards not to JMS client feedback information, and can continue to receive next data message, like this, reduce the stand-by period of virtual JMS server, improved the efficiency of virtual JMS server receiving data information.After virtual JMS server receives the data message of JMS client transmission, first virtual JMS server can build the agreement interface channel with JMS client, then the data message that asynchronous reception JMS client sends, then again the data message receiving is carried out to agreement and peel off, and peel off and judge that whether data message is legal by agreement.When virtual JMS server, judge data message when legal, data message is ferried on isolation board, otherwise virtual JMS server is judged data message when illegal, shadow data information.Like this, can guarantee that data message way flow is as corporate intranet, the confidential information of having avoided enterprises flows to outer net and causes the leakage of confidential information.
It should be noted that, virtual JMS server can be asynchronous the data message that sends of reception JMS client, like this, virtual JMS server, without waiting for JMS client, has improved the receiving efficiency of data message, and then has improved the effectiveness of whole system.
It should be noted that, in embodiments of the present invention, data message is protocol entity data, data message carries out agreement can comprise protocol data head and JMS message body after peeling off, wherein, protocol data head is protocol entity, and this protocol data head sends the object of data message for describing JMS client, and protocol data head is for the data type of characterization data information, and JMS message body is for the function of data of description information itself.By agreement peel off judge data message whether legal can be by agreement, to peel off the protocol data head obtaining to judge that whether data message legal.Wherein, particularly, protocol data head and the preset protocol data head being stored in the presets list can be contrasted one by one, when protocol data head be stored in preset protocol data head in the presets list when identical, judge data message legal, otherwise when protocol data head be stored in preset protocol data head in the presets list when not identical, judge data message illegal.Like this, the data message storing on isolation board is legal information, and data message comprises protocol data head and JMS message body.
In embodiments of the present invention, Java message service server receive the data message that Java messenger service client reads from isolation board can be asynchronous random receiving data information or receive Java messenger service client asynchronous read according to data information memory to data message isolation board.Java messenger service client read data information and set up with Java message server between be connected after, Java message server can receive the data message from Java messenger service client.
Processing unit 50 is processed the data message receiving for Java message server.In embodiments of the present invention, Java message server can carry out asynchronous forwarding by 50 pairs of data messages that receive of processing unit, and Java message server can be transmitted to one or more user by the data message receiving by processing unit 50.
By the embodiment of the present invention, guaranteed that outer net is to the unidirectional inflow of the data message of Intranet, and data message can asynchronous transmission and reception, has improved the sending and receiving efficiency of data message, and then has improved the effectiveness of whole system.
Fig. 8 is according to the schematic diagram of the Java message server of second embodiment of the invention.
As shown in Figure 8, this embodiment can be used as preferred implementation embodiment illustrated in fig. 7, and the Java message server of this embodiment, except comprising the receiving element 40 and processing unit 50 of the first embodiment, also comprises monitoring unit 60 and notification unit 70.
Identical with the first embodiment of the effect of receiving element 40 and processing unit 50, does not repeat them here.
Monitoring unit 60 is for before receiving the data message from Java messenger service client at Java message server, the connection of monitoring Java messenger service client.
In embodiments of the present invention, the connection that Java message server is monitored Java messenger service client can be the connection request of monitoring Java messenger service client, when Java messenger service client is sent connection request and this connection request when legal, carry out being connected of Java message server and Java messenger service client, otherwise when the request of not sending of Java messenger service client or send connection request but this connection request when illegal, do not carry out being connected of Java message server and Java messenger service client.
In embodiments of the present invention, in embodiments of the present invention, due to the virtual JMS server stores in client-server group 1, to isolation, the data message on board is protocol entity data message, so the data-message that the Java messenger service client that receives of Java message server reads from isolation board is protocol entity data-message.Wherein, protocol entity data-message can comprise protocol entity and JMS message body after peeling off through agreement, and protocol entity is for the data type of characterization data message.Protocol entity can be the first field of data-message, and protocol entity can binary coding representation, the binary coding of the first field of the data-message that different protocol entities is corresponding is different, in addition, the all right corresponding unique identifier of protocol entity, this sign also can be for identifying corresponding protocol entity.
Java message server can be peeled off the protocol entity of data-message, obtains the type of message of data-message.For example, this type of message can comprise connection message type and send type of message.Like this, Java message server can judge whether to carry out data connection by monitoring the type of message of Java messenger service client transmission, when the data type listening to is connection message type, carry out being connected of Java message server and Java messenger service client, otherwise when the data type listening to is not when the connection message type, do not carry out being connected of Java message server and Java messenger service client.
Preferably, in embodiments of the present invention, after Java message server is listening to the successful connection of Java messenger service client, this server can also comprise verification unit and closing unit.
Verification unit is for after Java message server is listening to the successful connection of Java messenger service client, to the data message sending from Java messenger service client receiving, carry out agreement and peel off, and the data after agreement is peeled off are carried out legitimacy check.It should be noted that, in Java messenger service client after isolation board reading out data message, data message can be carried out to the agreement of protocol entity and JMS message body peels off, wherein, the data type of protocol entity corresponding data message, can be whether legal for judging JMS message body, when data type is legal data type, J notification filter server is waited for the data message receiving from Java messenger service client, otherwise when data type is illegal data type, do not notify filtering server to wait for the data message receiving from Java messenger service client.Preferably, Java message service server can only receive the JMS message body part of legal data message, like this, not only can retain the functional attributes of JMS message body itself, and can save the memory space of Java message server.
When closing unit is illegal for the data after verification goes out agreement and peels off, close described connection.
Notification unit 70 is for after listening to the successful connection of Java messenger service client, and notification filter server is waited for the data message receiving from Java messenger service client.Wherein, monitoring unit, also in notice, continues to carry out and monitors.
In embodiments of the present invention, the data message that Java message server receives the transmission of Java messenger service client can be the data message that the asynchronous reception of Java message server Java messenger service client sends, like this, improve the receiving efficiency of data message, and then improved the effectiveness of whole system.
By the present invention, guaranteed that outer net is to the unidirectional inflow of the data message of Intranet, and data message can asynchronous transmission and reception, has improved the sending and receiving efficiency of data message, and then has improved the effectiveness of whole system.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in storage device and be carried out by calculation element, or they are made into respectively to each integrated circuit modules, or a plurality of modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (12)

1. for a data processing method for Java messenger service, it is characterized in that, comprising:
Java messenger service client is from isolation board read data information;
Described Java messenger service client and Java message server connect; And
Described Java messenger service client is sent to described Java message server by the data message reading.
2. data processing method according to claim 1, is characterized in that, Java messenger service client comprises from isolation board read data information:
Described Java messenger service client is from described isolation board reading out data message;
Described Java messenger service client is processed described data-message, peels off the protocol entity of described data-message, obtains type of message and the message body of described data-message; And
Described Java messenger service client, when sending described message body, continues to read described data-message from isolation board.
3. data processing method according to claim 2, it is characterized in that, in described Java messenger service client, described data-message is processed, peel off the protocol entity of described data-message, after obtaining the type of message of described data-message, described data processing method also comprises:
Described Java messenger service client is carried out asynchronous operation according to described type of message;
If described type of message is for connecting, described Java messenger service client is set up and being connected of described Java message server, and at described data-messages to be sent such as success are rear; And
If described type of message is data, send, described Java messenger service client is directly sent to described data-message described Java message server.
4. for a data processing method for Java messenger service, it is characterized in that, comprising:
Described Java message server receives the data message from Java messenger service client, wherein, described Java messenger service client reads described data message from isolation board, connect with described Java message server, and the described data message reading is sent to described Java message server; And
Described Java message server is processed the data message receiving.
5. data processing method according to claim 4, is characterized in that, before described Java message server receives the data message from Java messenger service client, described data processing method also comprises:
Described Java message server is monitored the connection of described Java messenger service client;
Described Java message server is after listening to the successful connection of described Java messenger service client, and notification filter server is waited for the data message receiving from described Java messenger service client; And
Described Java message server, in notice, continues to carry out described monitoring.
6. data processing method according to claim 5, is characterized in that, after described Java message server is listening to the successful connection of described Java messenger service client, described data processing method also comprises:
Described Java message server, to the data message sending from described Java messenger service client receiving, carries out agreement and peel off, and the data after agreement is peeled off is carried out legitimacy check;
If the data that verification goes out after described agreement is peeled off are illegal, close described connection.
7. a Java messenger service client, is characterized in that, comprising:
Reading unit, for from isolation board read data information;
Linkage unit, for connecting with Java message server; And
Transmitting element, for being sent to the data message reading described Java message server.
8. Java messenger service client according to claim 7, is characterized in that, described reading unit comprises:
Read module, for from described isolation board reading out data message; And
Processing module, for described data-message is processed, peels off the protocol entity of described data-message, obtains the type of message of described data-message,
Wherein, described read module, also for when sending described type of message, continues to read described data-message from isolation board.
9. Java messenger service client according to claim 8, is characterized in that, also comprises:
Asynchronous operation unit, for carrying out asynchronous operation according to described type of message;
Wherein, described transmitting element at described type of message when connecting, set up and being connected of described Java message server, and at described data-messages to be sent such as success are rear, when described type of message is data transmission, directly described data-message is sent to described Java message server.
10. a Java message server, is characterized in that, comprising:
Receiving element, for receiving the data message from Java messenger service client, wherein, described Java messenger service client reads described data message from isolation board, connect with described Java message server, and the described data message reading is sent to described Java message server; And
Processing unit, processes the data message receiving for described Java message server.
11. Java message servers according to claim 10, is characterized in that, also comprise:
Monitoring unit, before receiving the data message from Java messenger service client at described Java message server, the connection of monitoring described Java messenger service client;
Notification unit, for after listening to the successful connection of described Java messenger service client, notification filter server is waited for the data message receiving from described Java messenger service client; And
Wherein, described monitoring unit, also in notice, continues to carry out described monitoring.
12. Java message servers according to claim 11, is characterized in that, also comprise:
Verification unit, for after described Java message server is listening to the successful connection of described Java messenger service client, the data message sending from described Java messenger service client to receiving, carries out agreement and peel off, and the data after agreement is peeled off is carried out legitimacy check;
Closing unit, for going out data after described agreement is peeled off in verification when illegal, closes described connection.
CN201310603873.7A 2013-11-25 2013-11-25 Data processing method for Java message service, Java message client and server Active CN103607324B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310603873.7A CN103607324B (en) 2013-11-25 2013-11-25 Data processing method for Java message service, Java message client and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310603873.7A CN103607324B (en) 2013-11-25 2013-11-25 Data processing method for Java message service, Java message client and server

Publications (2)

Publication Number Publication Date
CN103607324A true CN103607324A (en) 2014-02-26
CN103607324B CN103607324B (en) 2020-01-17

Family

ID=50125525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310603873.7A Active CN103607324B (en) 2013-11-25 2013-11-25 Data processing method for Java message service, Java message client and server

Country Status (1)

Country Link
CN (1) CN103607324B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270374A (en) * 2014-10-11 2015-01-07 中国南方电网有限责任公司 Method and system of JMS cross forward isolating device
CN104601576A (en) * 2015-01-16 2015-05-06 网神信息技术(北京)股份有限公司 File transmission method and device based on one-way safety isolation gap
CN104601703A (en) * 2015-01-16 2015-05-06 网神信息技术(北京)股份有限公司 File transmission method and device based on one-way safety isolation gap

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6321337B1 (en) * 1997-09-09 2001-11-20 Sanctum Ltd. Method and system for protecting operations of trusted internal networks
CN1839385A (en) * 2003-04-25 2006-09-27 汤姆森环球资源公司 Distributed search methods, architectures, systems, and software
CN2914196Y (en) * 2005-12-27 2007-06-20 河北国际商务信息中心 Government approval system for receiving cases on outer net and handling cases on inside net
CN202178780U (en) * 2011-08-31 2012-03-28 公安部第三研究所 Internal-and-external network safety isolation system based on one-way transmission
CN102710639A (en) * 2012-05-31 2012-10-03 国网电力科学研究院 Cross-power-safety-zone real-time data exchange method based on ActiveMQ data bus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6321337B1 (en) * 1997-09-09 2001-11-20 Sanctum Ltd. Method and system for protecting operations of trusted internal networks
CN1839385A (en) * 2003-04-25 2006-09-27 汤姆森环球资源公司 Distributed search methods, architectures, systems, and software
CN2914196Y (en) * 2005-12-27 2007-06-20 河北国际商务信息中心 Government approval system for receiving cases on outer net and handling cases on inside net
CN202178780U (en) * 2011-08-31 2012-03-28 公安部第三研究所 Internal-and-external network safety isolation system based on one-way transmission
CN102710639A (en) * 2012-05-31 2012-10-03 国网电力科学研究院 Cross-power-safety-zone real-time data exchange method based on ActiveMQ data bus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270374A (en) * 2014-10-11 2015-01-07 中国南方电网有限责任公司 Method and system of JMS cross forward isolating device
CN104601576A (en) * 2015-01-16 2015-05-06 网神信息技术(北京)股份有限公司 File transmission method and device based on one-way safety isolation gap
CN104601703A (en) * 2015-01-16 2015-05-06 网神信息技术(北京)股份有限公司 File transmission method and device based on one-way safety isolation gap

Also Published As

Publication number Publication date
CN103607324B (en) 2020-01-17

Similar Documents

Publication Publication Date Title
AU2014269271B2 (en) Electronic device using logical channels for communication
CN102231746B (en) Method for validating identification information and terminal thereof
CN105991412B (en) Information push method and device
CN104348697B (en) The processing method of video communication information, apparatus and system
CN103535004B (en) Method for promoting anonymity audio and video communication and system based on web
CN113067882A (en) Message processing method and device, electronic equipment and medium
US11616747B1 (en) Systems and methods for multi-agent messaging
US8116782B2 (en) Communication quality control system
US11336734B1 (en) System and method for aggregating communication connections
CN104601576A (en) File transmission method and device based on one-way safety isolation gap
CN109922144B (en) Method and apparatus for processing data
CN101631127A (en) File transfer method and clients
JP2004326318A (en) Communication device
CN103607324A (en) Data processing method, Java information client and server for Java information service
CN105165035A (en) Transmission of multimedia message doubled with transmission of text message
CN103595611B (en) The realization method and system and equipment of instant messaging application
US8103730B2 (en) Use of persistent sessions by a presence access layer
CN106385516B (en) A kind of method, apparatus and terminal of the transfer of setting business
US10063648B2 (en) Relaying mobile communications
CN111385068A (en) Data transmission method and device, electronic equipment and communication system
EP2949083B1 (en) Receiving a communication event
US8200845B2 (en) Queuing of invocations for mobile web services
WO2012146000A1 (en) Data transmission method and system
CN109120578A (en) A kind of method and device for realizing link connection processing
CN114698101A (en) Communication method and communication system

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
CP03 Change of name, title or address

Address after: 100044 2nd floor, building 1, yard 26, Xizhimenwai South Road, Xicheng District, Beijing

Patentee after: Qianxin Wangshen information technology (Beijing) Co.,Ltd.

Patentee after: Legendsec Technology (Beijing) Co.,Ltd.

Address before: 100085 1st floor, Section II, No.7 Kaifa Road, Shangdi Information Industry base, Haidian District, Beijing

Patentee before: LEGENDSEC INFORMATION TECHNOLOGY (BEIJING) Inc.

Patentee before: Legendsec Technology (Beijing) Co.,Ltd.

CP03 Change of name, title or address