0

My first post.

I have experience of basic java servlet and jsp and have got my webpage implemented in tomcat7.

Regarding Websocket, I am finding difficult to build understanding of how to implement it, i want to use tomcat8 implementation of websocket api and uplift my webpage (jsp, java, jquery, tomcat7) to use the websocket features, have not been able to find the the tutorial that can guide me through, something like hello world example. any pointers (sample codes, tutorials)?

have tried to understand tomcat8 examples but not understanding them at all

4

1 回答 1

0

您需要了解,您不只是将 WebSocket “添加”到现有的 Web 应用程序中……以使其更快、更好、更便宜、更具可扩展性等。相反,您必须完全重新构建 Web 层应用程序以利用其功能。

我建议您在尝试使用 Tomcat 或任何其他支持 WebSocket 的服务器编写任何代码之前先阅读大量有关 WebSocket 的内容以及整个想法是什么。

Nick Williams即将出版的一本书似乎涵盖了 Web 应用程序世界中的所有内容,据我所知,它将包含大量有关基于 WebSocket 的代码的信息。不幸的是,你必须等到 2013 年 3 月(至少)才能使用那本书。

我确信有类似的书籍,甚至在线教程可以帮助您开始使用 WebSocket。请注意,切换到 WebSocket 并不是一些简单的配置选项:它对任何现有的 Web 应用程序都是一个非常具有破坏性的更改。

于 2013-12-14T20:56:43.500 回答