java - Testing WebSockets With The Gretty Gradle Plugin -


i created simple war includes servlet (defined in web.xml) , jsr 356 websocket (defined annotations).

when deploy tomcat 7.0.59 (via tomcat manager) both servlet , websocket work correctly. when use gretty gradle plugin test out war servlet works jsr 356 websocket not. have tried tomcat 7.0.59, tomcat 8.0.20 , jetty 9.2.9.v20150224 in gretty. obvious doing wrong here?

i assume using latest gretty version adding gretty gradle build file via:

apply plugin: 'war' apply from: 'https://raw.github.com/akhikhl/gretty/master/pluginscripts/gretty.plugin' 

please check gretty 1.2.1 - https://github.com/akhikhl/gretty

it supports websockets out-of-the-box, no configuration needed.

gretty includes 2 working examples of using websockets:

https://github.com/akhikhl/gretty/tree/master/examples/websocket

https://github.com/akhikhl/gretty/tree/master/examples/springbootwebsocket


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -