开发者

any API for to implement web-sockets in java [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow q开发者_开发问答uestions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 2 years ago.

Improve this question

I have a requirement to do a web based interactive application in which server could push data in to the clients(web browser , android phone or JME phone). I have suggested to use Websockets rather than reverse ajax. Is there any nice framework for java to implement websockets. Please suggest.


The following very similar sounding Java servers / frameworks have web socket support:

  • Jetty
  • Netty

Note that web sockets aren't universally supported as a result of security issues (and because Microsoft doesn't want to).

You could also consider looking at some of the JMS providers that provide JMS to web sockets e.g. HornetQ and ActiveMQ using Stomp.


No need, Java has it's own very intuitive socket library.

api: http://download.oracle.com/javase/1.4.2/docs/api/java/net/Socket.html

tutorial: http://download.oracle.com/javase/tutorial/networking/sockets/


Grizzly also has websockets support for what it's worth. But one reason to use websockets rather than java.net.Socket is that websockets can traverse firewalls and proxies transparently without having to reconfigure network ports/policies.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜