CN102457553A - Off-line SaaS (software as a service) application software realization method based on B/S (browser/server) mode - Google Patents

Off-line SaaS (software as a service) application software realization method based on B/S (browser/server) mode Download PDF

Info

Publication number
CN102457553A
CN102457553A CN2010105239862A CN201010523986A CN102457553A CN 102457553 A CN102457553 A CN 102457553A CN 2010105239862 A CN2010105239862 A CN 2010105239862A CN 201010523986 A CN201010523986 A CN 201010523986A CN 102457553 A CN102457553 A CN 102457553A
Authority
CN
China
Prior art keywords
line
server
data
assembly
local
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2010105239862A
Other languages
Chinese (zh)
Inventor
李骁淳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhenjiang Yction Software Co Ltd
Original Assignee
Zhenjiang Yction Software 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 Zhenjiang Yction Software Co Ltd filed Critical Zhenjiang Yction Software Co Ltd
Priority to CN2010105239862A priority Critical patent/CN102457553A/en
Publication of CN102457553A publication Critical patent/CN102457553A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to an off-line SaaS (software as a service) application software realization method based on a B/S (browser/server) mode and belongs to the field of computer network communication. In the off-line SaaS application software realization method, an off-line database assembly for managing service data, a local Web server assembly for managing a system operation page under an off-line state, a synchronization assembly used for synchronizing data, a transmission assembly for transmitting data and a state detection assembly for judging whether the current machine is on line are utilized. In the off-line SaaS application software realization method, the system operation page is represented to the user by the local Web server, and the off-line database assembly stores the operation data of the network application program into a local database. The state detection assembly monitors whether the current machine is on line or not at regular time; if the current machine is on line, the synchronization assembly is invoked to identify data by virtue of a timestamp between the local server and a network server so as to synchronize with the server data; and finally, the transmission assembly is invoked to transmit the service data which is operated in an off-line mode to the server, and the server updates the latest service data.

Description

Off-line SaaS application software implementation method based on the B/S pattern
Technical field
The present invention relates to the off-line SaaS application software implementation method based on the B/S pattern, the management software of data sync belongs to computer network communication field during the especially a kind of SaaS application software applied off-line that solves based on the browser/server pattern.
Background technology
Based on the off-line SaaS application software implementation method of B/S pattern, essence is that a kind of operating data during to SaaS application software applied off-line is carried out management by synchronization and control, thereby realizes the management software of SaaS applied off-line.Aspect applied off-line; This kind software allows the resource of web application storage and operating application program in this locality; And operation pages and operating data be stored in the local relational database that can search for fully; Discern the data of off-line operation subsequently through timestamp between the home server and the webserver, it is synchronous to guarantee that the off-line operation of SaaS application software is used.
In addition, the SaaS application software of prior art is to use based on the Internet fully, and all mutual and data all need be passed through the Internet.For the user, can only be in the place that has network to connect, the Wireless Communication Equipment that perhaps user must oneself outfit wireless Internet card and so on could be used the service of SaaS application software.And in the live and work of reality, unpractical often.There is following shortcoming in prior art: network connects under insecure prerequisite not having network connection, network speed to cross slowly perhaps, and the user is the service that can't normally use the SaaS application software through network.In this case, not losing when how to avoid data to preserve, and how to improve user experience, is very popular in a current network application and development topic.
The present invention presents to the user through local Web server with the system operation page, is kept in the local data base through the operating data of off-line data library component with web application.Whether online by the current machine of state-detection assembly periodic monitor; If it is online; Then the invoke synchronous assembly comes recognition data through timestamp between the home server and the webserver; Accomplish with server data synchronously, call transmission assembly at last and send the business datum of off-line operation to server, by the up-to-date business datum of server update.Obviously, the data sync property is lower during existing SaaS application system applied off-line, can not satisfy the requirement of current each enterprise.
Summary of the invention
The objective of the invention is to: to the deficiency of above prior art existence; Proposition is based on the off-line SaaS application software implementation method of B/S pattern; Allow the resource of web application storage and operating application program in this locality; And operation pages and operating data be stored in the local relational database that can search for fully, come recognition data through timestamp between the home server and the webserver subsequently, guarantee synchronization of data.Thereby realize applied off-line based on the SaaS pattern.
In order to reach above purpose, the present invention contains following assembly:
Client operating software---be used for carrying out mutual software terminal system with client.
Local data base---use the small-size text database, what native system adopted is that the SQlite database is deposited business datum.
More than two assemblies form by following each widget:
Client operating software is made up of following assembly:
The off-line data library component---in order to the business datum in the management local data base;
Local Web server assembly---in order to management system operation pages under the off-line state;
Synchronization Component---local data and server end synchronization of data accomplished and to the strategy support of synchronizing process;
Transmission assembly---judge the employed host-host protocol of local machine, and corresponding host-host protocol in the match server, realize various host-host protocols;
The state-detection assembly---stab through comparing server end timestamp and client time, judge whether current machine is online.
Local data base consists of the following components:
The basic document of user information table---recording user.
The time table of comparisons--time corresponding is stabbed information between the-record home server and the webserver, and it is characterized in that: have the live tag field, whether recorder is online.
Page table--the system operation page the in-record server.
The business datum of business datum table---recording user operation.
The user uses step to be:
Step 1: use client operating software; System manager's Accreditation System domestic consumer; Comprise address name, user name, password or the like, client operating software will be called the off-line data library component domestic consumer's essential information will be saved in the user information table of database.
Step 2: use client operating software; Utilize the state-detection assembly to obtain the timestamp of server end; Call the off-line data library component value of the live tag field in the time table of comparisons in the local data base is taken out, the mark with this mark and server end record compares again, representes that then current machine is online if mark is identical; Otherwise, then not online; If not online, then call local Web server assembly, the data in the page table in the local data base are taken out the operation pages when offering the user and carrying out the regular traffic operation.
Step 3: use client operating software,, call the off-line data library component business datum that the user operates is saved in the business datum table of database through the off-line data library component.If it is consistent with the server end timestamp to utilize Synchronization Component to judge that the server time of local record stabs, and the timestamp of this locality is labeled as True and explains that then local data is newer than server end data, need local data be updated to server.If local time stamp is labeled as False, and the server end timestamp is bigger than the server end timestamp of client storage, explains that then the server end data are newer than local data, need be with the server end data sync to local;
Step 4: use client operating software, utilize transmission assembly to judge the employed host-host protocol of local machine, and corresponding host-host protocol in the match server, carry out the processing of data effectively.
So, the present invention presents to the user through local Web server assembly with the system operation page, is kept in the local data base through the operating data of off-line data library component with web application.Whether online by the current machine of state-detection assembly periodic monitor; If it is online; Then the invoke synchronous assembly comes recognition data through timestamp between the home server and the webserver; Accomplish with server data synchronously, call transmission assembly at last and send the business datum of off-line operation to server, by the up-to-date business datum of server update.Data sync when guaranteeing applied off-line, the accuracy of enhancing its data.
Embodiment
Embodiment one
Use MyEclipse 5.5 SDKs exploitation client and server operating software; Use database management tools special-purpose on the market; Oracle 9i sets up the needed database of system, adopts MyEclipse 5.5 as IDK, and concrete mode is:
In order to reach above purpose, the present invention contains following assembly:
Client operating software---be used for carrying out mutual software terminal system with client.
Local data base---use the small-size text database, what native system adopted is that the SQlite database is deposited business datum.
More than two assemblies form by following each widget:
Client operating software is made up of following assembly:
The off-line data library component---in order to the business datum in the management local data base;
Local Web server assembly---in order to management system operation pages under the off-line state;
Synchronization Component---local data and server end synchronization of data accomplished and to the strategy support of synchronizing process;
Transmission assembly---judge the employed host-host protocol of local machine, and corresponding host-host protocol in the match server, realize various host-host protocols;
The state-detection assembly---stab through comparing server end timestamp and client time, judge whether current machine is online.
Local data base consists of the following components:
The basic document of user information table---recording user.
The time table of comparisons--time corresponding is stabbed information between the-record home server and the webserver, and it is characterized in that: have the live tag field, whether recorder is online.
Page table--the system operation page the in-record server.
The business datum of business datum table---recording user operation.
The user uses step to be:
Step 1: use client operating software; System manager's Accreditation System domestic consumer; Comprise address name, user name, password or the like, client operating software will be called the off-line data library component domestic consumer's essential information will be saved in the user information table of database.
Step 2: use client operating software; Utilize the state-detection assembly to obtain the timestamp of server end; Call the off-line data library component value of the live tag field in the time table of comparisons in the local data base is taken out, the mark with this mark and server end record compares again, representes that then current machine is online if mark is identical; Otherwise, then not online; If not online, then call local Web server assembly, the data in the page table in the local data base are taken out the operation pages when offering the user and carrying out the regular traffic operation.
Step 3: use client operating software,, call the off-line data library component business datum that the user operates is saved in the business datum table of database through the off-line data library component.If it is consistent with the server end timestamp to utilize Synchronization Component to judge that the server time of local record stabs, and the timestamp of this locality is labeled as True and explains that then local data is newer than server end data, need local data be updated to server.If local time stamp is labeled as False, and the server end timestamp is bigger than the server end timestamp of client storage, explains that then the server end data are newer than local data, need be with the server end data sync to local;
Step 4: use client operating software, utilize transmission assembly to judge the employed host-host protocol of local machine, and corresponding host-host protocol in the match server, carry out the processing of data effectively.
Except that the foregoing description, the present invention can also have other execution modes.All employings are equal to the technical scheme of replacement or equivalent transformation formation, all drop on the protection range of requirement of the present invention.

Claims (4)

1. based on the off-line SaaS application software implementation method of B/S pattern; It is characterized in that the system operation page being presented to the user through local Web server; Be kept in the local data base through the operating data of off-line data library component with web application, concrete steps are: whether online by the current machine of state-detection assembly periodic monitor, if online; Then the invoke synchronous assembly comes recognition data through timestamp between the home server and the webserver; Accomplish with server data synchronously, call transmission assembly at last and send the business datum of off-line operation to server, by the up-to-date business datum of server update.
2. according to the said off-line SaaS application software implementation method of claim 1, it is characterized in that comprising following assembly: in order to the local data base of store various kinds of data based on the B/S pattern; Local Web server assembly in order to management system operation pages under the off-line state; In order to accomplish the Synchronization Component of local data and server end synchronization of data; In order to judging the employed host-host protocol of local machine, and corresponding host-host protocol in the match server, realize the transmission assembly of various host-host protocols; In order to the state-detection assembly of judging that current machine is whether online; Off-line data library component in order to the business datum in the management local data base.
3. according to the said off-line SaaS application software implementation method of claim 1, it is characterized in that: do not having that network connects, network speed is crossed slow or network connects under insecure prerequisite business datum is operated based on the B/S pattern.
4. according to the said off-line SaaS application software implementation method of claim 1 based on the B/S pattern; It is characterized in that: through the state-detection assembly; Relatively whether the server end timestamp is identical with client time stamp flag state before, judges whether current machine is online.
CN2010105239862A 2010-10-29 2010-10-29 Off-line SaaS (software as a service) application software realization method based on B/S (browser/server) mode Pending CN102457553A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105239862A CN102457553A (en) 2010-10-29 2010-10-29 Off-line SaaS (software as a service) application software realization method based on B/S (browser/server) mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105239862A CN102457553A (en) 2010-10-29 2010-10-29 Off-line SaaS (software as a service) application software realization method based on B/S (browser/server) mode

Publications (1)

Publication Number Publication Date
CN102457553A true CN102457553A (en) 2012-05-16

Family

ID=46040204

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105239862A Pending CN102457553A (en) 2010-10-29 2010-10-29 Off-line SaaS (software as a service) application software realization method based on B/S (browser/server) mode

Country Status (1)

Country Link
CN (1) CN102457553A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023883A (en) * 2011-01-05 2011-04-20 苏州荣盈科技有限公司 Method for data synchronization
CN103747084A (en) * 2014-01-08 2014-04-23 广东电网公司信息中心 Off-line access method and system for advanced enterprise mobile application platform
CN104065613A (en) * 2013-03-18 2014-09-24 ***通信集团内蒙古有限公司 Offline operation data synchronization method, system and device of application
CN104820701A (en) * 2015-05-11 2015-08-05 北京瑞星信息技术有限公司 Method and system for recording and synchronizing data
CN107229649A (en) * 2016-03-25 2017-10-03 腾讯科技(深圳)有限公司 Data update system and method
CN108563776A (en) * 2018-04-24 2018-09-21 武汉斗鱼网络科技有限公司 Off-line data acquisition methods and system, server and storage medium
CN110851413A (en) * 2019-11-08 2020-02-28 深圳市元征科技股份有限公司 Data synchronization method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102456009A (en) * 2010-10-21 2012-05-16 镇江金软计算机科技有限责任公司 Off-line engine system based on software as a service (SaaS) mode

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102456009A (en) * 2010-10-21 2012-05-16 镇江金软计算机科技有限责任公司 Off-line engine system based on software as a service (SaaS) mode

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
叶伟等: "《互联网时代的软件革命SaaS 架构设计》", 31 January 2009, 电子工业出版社 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023883A (en) * 2011-01-05 2011-04-20 苏州荣盈科技有限公司 Method for data synchronization
CN104065613A (en) * 2013-03-18 2014-09-24 ***通信集团内蒙古有限公司 Offline operation data synchronization method, system and device of application
CN104065613B (en) * 2013-03-18 2017-11-21 ***通信集团内蒙古有限公司 Synchronous method, system and the device of a kind of off-line operation data of application
CN103747084A (en) * 2014-01-08 2014-04-23 广东电网公司信息中心 Off-line access method and system for advanced enterprise mobile application platform
CN104820701A (en) * 2015-05-11 2015-08-05 北京瑞星信息技术有限公司 Method and system for recording and synchronizing data
CN104820701B (en) * 2015-05-11 2018-02-06 北京瑞星信息技术股份有限公司 Data record and synchronous method and system
CN107229649A (en) * 2016-03-25 2017-10-03 腾讯科技(深圳)有限公司 Data update system and method
CN107229649B (en) * 2016-03-25 2019-07-12 腾讯科技(深圳)有限公司 Data update system and method
CN108563776A (en) * 2018-04-24 2018-09-21 武汉斗鱼网络科技有限公司 Off-line data acquisition methods and system, server and storage medium
CN110851413A (en) * 2019-11-08 2020-02-28 深圳市元征科技股份有限公司 Data synchronization method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102457553A (en) Off-line SaaS (software as a service) application software realization method based on B/S (browser/server) mode
CN103428264B (en) The method of data syn-chronization, equipment and system
CN109542865A (en) Distributed cluster system configuration file synchronous method, device, system and medium
CN105955862A (en) Abnormal problem monitoring positioning method and device
CN107181686B (en) Method, device and system for synchronizing routing table
CN103916482A (en) Data synchronous transmission method based on sqlite
CN104283926A (en) Data synchronization method, device and server
RU2004131856A (en) METHODS AND DEVICE FOR SYNCHRONIZING HOW DATA IS STORED IN VARIOUS DATA STORAGES
CN103152398A (en) Method and system for file synchronization among multiple terminal files
CN103209223A (en) Distributed application conversation information sharing method and system and application server
CN101340425A (en) Method and apparatus for data synchronization between terminals
CN102736923B (en) Software customization installation method and system
CN104243508A (en) Server, client side and file synchronization method
CN102946410A (en) Method and device for network synchronization
CN109873857A (en) Mobile terminal method of data synchronization and device under a kind of no network state
CN101827078A (en) Inquiry method, server and communication system for configured data difference
CN103164422A (en) Method, equipment and system for conducting data synchronism by adopting general data storage format
CN102946411A (en) Network synchronization system
CN106412697A (en) Method and device for automatically acquiring time zone for smart television
CN103905441A (en) Data acquisition method and device
CN107888434B (en) Network equipment configuration synchronization method and device
CN102594874B (en) Synchronization processing method and device
CN102024040A (en) Database synchronization method, device and system
CN110661851A (en) Data exchange method and device
CN104717175B (en) The processing method and system of virtual desktop

Legal Events

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

Application publication date: 20120516