Skip to content

A Spring skeleton application for using vert.x and websockets.

License

Notifications You must be signed in to change notification settings

codeporn/spring-vertx-skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-vertx-skeleton

A Spring skeleton using vert.x and websockets. The application fetches dummy information from https://jsonplaceholder.typicode.com, which is then deliverd asynchronously to the JavaScript websocket client. The client may also publish commands to the eventbus, which notifies the application to switch the type of information processed.

Build Status Coverity Status

Usage

If you'd like to run the application with a different hostname/ip/port, you'll need to change the eventbus configuration. Please see the section below for details.

Configuration

The configuration is located in ./src/main/resources/skeleton.properties.

  • eventbus.server.* and eventbus.client.*

    These properties configure the websocket/eventbus addresses. By default, the websocket opens and the web client connects to http://localhost:8088/eventbus/. You are able to change this according to your environment.

  • vertx.fileCache.base

    Configures the Vert.x cache directory. Defaults to java.io.tmpdir if not set.