Demo application for XRMI Distributed architecture framework
Java
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/main/java/name/lcf/xrmidemo
.gitignore
README.md
pom.xml

README.md

Demo application for XRMI framework

"Online store" web service that allows adding items to shopping cart. This application demonstrates how a certain part of an application can be deployed and scaled independently with XRMI without any changes to application itself.

The web facade entry point is implemented with Java Spark framework. Key business components are: ShoppingCartService, CustomersService and WarehouseService.

You can launch the JAR file in three modes:

  1. java -jar xrmi-demo-1.0.0-SNAPSHOT.jar

will start the application as if XRMI wasn't used, as a single application.

  1. java -jar xrmi-demo-1.0.0-SNAPHOST.jar server 12345

will start XRMI server on port 12345

  1. java -jar xrmi-demo-1.0.0-SNAPHOST.jar client example.com 12345

will launch the application with XRMI client support. All calls to WarehouseService will be directed to remote server located on example.com:12345