实时网络跟踪应用 [英] Real time web tracking app

查看:90
本文介绍了实时网络跟踪应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个车队管理系统. 简化形式包括:

服务(Java,JDBC),通过套接字与汽车上的所有设备进行通信 (接收新数据,解析并放入数据库(Mysql).)

Web界面(服务器端:Tomcat,Java,Spring,JDBC,Mysql.客户端:GWT,GWTP,GoogleMaps). 它使用GWT-RPC每10秒从服务器请求数据,并在客户端上进行适当的更改.

目标:进行实时应用.页面上的所有数据均独立更新 在服务器上收到它们后立即在不同的时间点.与所有新的浏览器(浏览器, 不支持WebSockets的应用程序也应在不添加替代代码的情况下使用).开源框架.

1)如何通知Java服务器端数据库中有新数据(收到的新信息) 来自设备. (插入操作).或更新,例如汽车名称(更新操作). MySQL-> Java?

2)如何通知所有客户端服务器上的某些更改? Java-> GWT(请简要说明 安全组织.每个用户都能看到自己的汽车以及适用于他们的所有数据的一小部分)

3)平稳地跳动而没有跳跃和眨眼,使单位在地图上移动,给人留下的印象.

关于2),然后倾向于气氛"框架,但我接受任何提议.

如果您很清楚地回答了其中一个问题,请写下.我将非常感谢

预先感谢您的回答

解决方案

从我的角度来看,您需要实现队列系统和推送通知.

通过项目符号答复:

1)使用JMS( http://docs.oracle.com /javaee/6/tutorial/doc/bncdq.html )让生产者"(即服务)通知新数据的可用性

2)使用向客户的推送通知(例如:Atmosphere- https://github.com/Atmosphere/atmosphere )将新数据显示给客户.为了将正确的信息路由到正确的客户端,这取决于您可用于在队列上分派数据的数据

3)这是前两点的结果...您的UI应该仅在已更改的部分中得到更新.

希望对您有所帮助

There is a fleet management system. In a simplified form, it consists of:

Service (Java, JDBC), which communicates with all devices on the car by socket (receives new data, parses and puts to the database (Mysql)).

Web interface (Server side: Tomcat, Java, Spring, JDBC, Mysql. Client side: GWT, GWTP, GoogleMaps). It requests data from the server every 10 seconds using a GWT-RPC and makes the appropriate changes on the client.

Objective: to make real time applications. All data on the page are updated independently at different points in time immediately after receiving them on server. Compatible with all new browsers (browsers, that do not support WebSockets should also work with the application without adding alternative code). Opensource frameworks.

1) How do I notify my Java server side that there is new data in the database (received new information from device. (insert operation). Or updated, for example, the name of the car (an update operation)). Mysql -> Java?

2) How do I notify all clients that something has changed on the server? Java -> GWT (please explain in brief organization of security. Each user sees his cars and a small subset of all the data that apply to them)

3) Smoothly without jumps and blinks move units around the map to the impression that they were going.

With regard to 2), then tend to the Atmosphere framework, but I accept any offers.

if you know the answer to one of the questions well - write. I would be very grateful

Thanks in advance for your answers

解决方案

From my point of view, you need to implement queue systems and push notification.

Replying by bullets:

1) Use JMS (http://docs.oracle.com/javaee/6/tutorial/doc/bncdq.html) to have "producer" (i.e.: the services) notify the availability of new data

2) Use push notification to clients (e.g.: Atmosphere - https://github.com/Atmosphere/atmosphere) to bring the new data to show to customer. For the routing of the right information to the right client, it depends on the data you have available to dispatch the data on the queue

3) This is the consequence of the first two points... you UI should get update only in the changed parts.

Hope to have been helpful

这篇关于实时网络跟踪应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆