Java-Chassis 1.0.0 Release
Cut 1.0.0 (RC-02) Release
174 files changed
tree: 0acc348e52490bd1eb66ea159a15d0c86bd2be99
  1. .github/
  2. archetypes/
  3. common/
  4. core/
  5. coverage-reports/
  6. demo/
  7. dynamic-config/
  8. edge/
  9. etc/
  10. foundations/
  11. handlers/
  12. integration-tests/
  13. java-chassis-dependencies/
  14. java-chassis-distribution/
  15. metrics/
  16. parent/
  17. providers/
  18. samples/
  19. scripts/
  20. service-registry/
  21. spring-boot-starter/
  22. swagger/
  23. tracing/
  24. transports/
  25. .gitignore
  26. .travis.settings.xml
  27. .travis.yml
  28. DISCLAIMER
  29. gpg-sec.tar.enc
  30. LICENSE
  31. NOTICE
  32. pom.xml
  33. README.md
README.md

Java Chassis

Build Status Coverage Status Maven Central License Gitter

Apache ServiceComb (incubating) Java Chassis is a Software Development Kit (SDK) for rapid development of microservices in Java, providing service registration, service discovery, dynamic routing, and service management features

Quick Start

Provider service:

import org.apache.servicecomb.*;
@RpcSchema(schemaId = "helloworld")
public class HelloWorldProvider implements HelloWorld {
    public String sayHello(String name) {
        return "Hello " + name;
    }
}

Consumer service:

import org.apache.servicecomb.*;
@Component
public class HelloWorldConsumer  {
	@RpcReference(microserviceName = "pojo", schemaId = "helloworld")
	private static HelloWorld helloWorld;

	public static void main(String[] args) {
		helloWorld.sayHello("Tank");
	}
}

Documentation

Project documentation is available on the ServiceComb website.

Building

You don’t need to build from source to use Java Chassis (binaries in apache nexus ), but if you want to try out the latest and greatest, Java Chassis can be easily built with the maven. You also need JDK 1.8.

  mvn clean install

If you want to build the release kits from the source

  mvn clean install  -Prelease,distribution

The first build may take a longer than expected as Maven downloads all the dependencies.

Automated Testing

To build the docker image and run the integration tests with docker, you can use maven docker profile

  mvn clean install -Pdocker -Pit

If you are using docker machine, please use the following command

  mvn clean install -Pdocker -Pit -Pdocker-machine

Get The Latest Release

Download Java-Chassis

Contact

Bugs: issues

mailing list: subscribe dev

Contributing

See CONTRIBUTING for details on submitting patches and the contribution workflow.