It´s an example how to integrate Grails 2.2.X and vertx 2.0.X, making a simple clock using a eventBus bridge in web page. and sending news using a external cluster vertx instance.
Steps to try:
-
Grails and Vertx need to be installed before follow the steps.
-
git clone https://github.com/rodrigoSaladoAnaya/GrailsVertxClock.git
-
cd GrailsVertxClock
-
grials run-app
-
uninstall InternetExplorer
-
open 2 diferents browsers like FireFox and Chrome, set the url http://localhost:8080/GrailsVertxClock
-
cd web-app/verticles
-
run server in a terminal:
run NewsVerticle.groovy -cluster -cluster-port 5463 -cluster-host 127.0.0.1
-
run client in a terminal:
telnet localhost 1234
-
write news in a client
-
take a look the browsers.
-
modifying enjoy it.