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
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github SCB-130 Updated the Github PR template Dec 27, 2017
archetypes [SCB-973] update ServiceComb-java-chassis repo name Nov 9, 2018
common [SCB-1001] add IT. Nov 1, 2018
core [SCB-987] delete spring 3 related declaring Oct 27, 2018
coverage-reports [SCB-917] parse proto file to model Sep 20, 2018
demo [SCB-1017]add os cpu net info in the metrics with linux os Nov 19, 2018
dynamic-config [SCB-1009]Supporting configure encrypted password for proxy settings Nov 7, 2018
edge [SCB-982][WIP] resolve dependency warnings Oct 27, 2018
etc [SCB-973] update ServiceComb-java-chassis repo name Nov 9, 2018
foundations [SCB-1022] measure tcpServer and tcpClient Nov 19, 2018
handlers [SCB-1012] use static strictRetriable and use Arrays.asList() Nov 7, 2018
integration-tests [SCB-1007] not support CustomGeneric<Map<String,String>> : resolve lo… Nov 7, 2018
java-chassis-dependencies-springboot2 [SCB-985] Cleanup dependencyManagement Oct 27, 2018
java-chassis-dependencies [SCB-986] Move shared code of service discovery to spring-boot-common Nov 19, 2018
java-chassis-distribution [SCB-948] convert proto model to string Oct 15, 2018
java-chassis-spring-boot [SCB-986] Rename CseXXX to ScbXXX in discovery starter Nov 19, 2018
metrics [SCB-1017]add os cpu net info in the metrics with linux os: add junit… Nov 19, 2018
parent [SCB-973] update ServiceComb-java-chassis repo name Nov 9, 2018
providers [SCB-989]scan RestController to to make springmvc controller publish … Oct 29, 2018
samples [SCB-973] update ServiceComb-java-chassis repo name Nov 9, 2018
scripts SCB-431 Added the rat check to the travis CI Mar 26, 2018
service-registry [SCB-1020]No need unregister when bootup failure before register service Nov 19, 2018
swagger [SCB-1014] rename ExceptionToResponseConverter Nov 12, 2018
tracing [SCB-982] resolve code compile warnings Oct 27, 2018
transports [SCB-992] Synchronous open source code from Vert.x 3.5.3 version Oct 31, 2018
.gitignore SCB-457 demostrate how to run bmi with gradle Apr 13, 2018
.travis.settings.xml [SCB-570] reformat *.xml May 22, 2018
.travis.yml Revert the change of disable build cache Jun 8, 2018
LICENSE SCB-449 Fix typo in LICENSE files Apr 8, 2018
NOTICE SCB-260 Correct LICENSE/NOTICE for src/binary release Mar 6, 2018
README.md SCB-973 Clean up the DISCLAIMER and the README.md Nov 9, 2018
gpg-sec.tar.enc Fix Java Doc Issues Mar 2, 2018
pom.xml [SCB-986] Re-structure spring related projects Nov 19, 2018

README.md

Java Chassis

Build Status Coverage Status Maven Central License Gitter

Apache 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 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.