Cut the release of 0.3.0
123 files changed
tree: 90f505fc516d79d3caaa39fb1439565a5dc0b77f
  1. common/
  2. core/
  3. coverage-reports/
  4. demo/
  5. etc/
  6. foundations/
  7. handlers/
  8. integration-tests/
  9. java-chassis-dependencies/
  10. java-chassis-distribution/
  11. parent/
  12. providers/
  13. samples/
  14. scripts/
  15. service-registry/
  16. spring-boot-starter/
  17. swagger/
  18. tracing/
  19. transports/
  20. .gitignore
  21. .travis.settings.xml
  22. .travis.yml
  23. gpg-sec.tar.enc
  24. LICENSE
  25. NOTICE
  26. pom.xml
  27. README.md
README.md

Java Chassis Build StatusCoverage Status

Maven Central License

ServiceComb 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 io.servicecomb.*;
@RpcSchema(schemaId = "helloworld")
public class HelloWorldProvider implements HelloWorld {
    public String sayHello(String name) {
        return "Hello " + name;
    }
}

Consumer service:

import io.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 repo.servicecomb.io), 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

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

Contact

Bugs: issues

mailing lists: users , developers

Contributing

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

Reporting Issues

See reporting bugs for details about reporting any issues.