EventsPlugIn is an extension for the jWebSocket framework to provide a server-side event-driven programming model. The extension increases the oriented object programming (OOP) usage and provides support for aspect oriented programming (AOP) in the client to server communication process.
EventsPlugIn also promotes the integration with the Spring framework to re-use the excellent mechanism existing on it oriented to the server side application development.
The EventsPlugIn extension is part of the jWebSocket official release and can be downloaded by downloading the jWebSocket framework. This is from the URL: http://jwebsocket.org/download/.
Developers may use machines with powerful Dual-Core processors or higher and 2 or more GB of RAM.
Depending or the applications particular process requirements and target multi-user concurrency, production servers may use strong Quad-Core processors and 8 GB or more of RAM dedicated to the JVM process running the jWebSocket server.
For high speed database access on high user concurrency scenarios, databases should be installed in dedicated servers to avoid overloads in the application server.
The EventsPlugIn extension does not require special configurations to be used. Instead the applications created with EventsPlugIn make usages of the jWebSocket.xml main configuration file and a complete new set of Spring configuration files located in the directory:
The way to configure an EventsPlugIn application is by using the Spring Inversion of Control Container and XML files. By default, the jWebSocket server 1.0 version package comes with a sample “test-application” configuration, that can be used as prototype to configure new applications.
In the main configuration file jWebSocket.xml, the following configuration require to be added to set an application to be loaded by the application server:
<plugins> ... <plugins> <plugin> <name>org.jwebsocket.plugins.events.EventsPlugIn</name> <ns>alarm</ns> <id>jws.eventsplugin.alarm</id> <jar>jWebSocketEventsPlugIn-1.0.jar</jar> <server-assignments> <server-assignment>ts0</server-assignment> </server-assignments> </plugin> </plugins> ... </plugins>
For more details about specific application configuration see the “Configuring the application with Spring” section in the Developer Guide.
How does it work?
java -jar $JWEBSOCKET_HOME/libs/jWebSocketServer-Bundle-1.0.jar
The EventsPlugIn extension is part of the official jWebSocket release, has been designed and developed by Rolando Santamaría Masó<kyberneees>, member of the jWebSocket development team.
Contact with kyberneees at:
Report issues at: http://jwebsocket.org/issue_report.htm
Copyright © 2013 Innotrade GmbH. All rights reserved.