0

Hej everyone,

Current state of my Project: As part of a distributed framework I'm working on I use a REST. Its a simple implementation in Java using Jersey and runs on Tomcat. It consumes calls from lots of other web services and has no direct user-interaction (so far). However beeing a central part of the whole framework and a lot of the other developer have to see its internal status. So far I had a simple REST call returning the log file and some extra information from the service.

My task: For demonstration reasons I need to make this interface a bit more graphic (maybe add some GUI functions later). Also I have to change it from pull based to push based. This pretty much means I cant do it as just another rest call anymore. //EDIT more details for the GUI: Currently the GUI only needs to be able to show some status pictures but it needs to update itself. It has to run in a browser. Later on some interactive parts might be needed (pushing buttons)

Question: Is there a simple and easy to integrate tool/framework that would allow me to create a simple GUI (allowing for server push)? At the moment I,m looking at Vaadin but im not sure if thats not overkill. Also I dint get it to work alongside the other code so far.

Hope someone can help me on this. I'm an absolute noob with all that web-service stuff, so I need something as simple as possible.

4

1 回答 1

0

如果您必须推送信息,则让其他服务注册一个回调地址并对它们进行休息调用。(定义一个由他们实现的接口!)这就是我如何满足项目中的推送要求,并被客户很好地接受。这是非常万无一失的。

我不太确定你想要那个 GUI 什么?也许提供一个带有 websockets 的 HTML5 页面来推送更新数据?

于 2012-09-26T12:28:39.630 回答