Java Chassis::Distribution

Java Chassis Parent

License

License

Categories

Categories

Java Languages Distribution Build Tools
GroupId

GroupId

org.apache.servicecomb
ArtifactId

ArtifactId

apache-servicecomb-incubating-java-chassis-distribution
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

zip
Description

Description

Java Chassis::Distribution
Java Chassis Parent
Project Organization

Project Organization

The Apache Software Foundation

Download apache-servicecomb-incubating-java-chassis-distribution

Dependencies

compile (40)

Group / Artifact Type Version
org.apache.servicecomb : common-javassist jar 1.0.0
org.apache.servicecomb : common-protobuf jar 1.0.0
org.apache.servicecomb : common-rest jar 1.0.0
org.apache.servicecomb : java-chassis-core jar 1.0.0
org.apache.servicecomb : spring-boot-starter-configuration jar 1.0.0
org.apache.servicecomb : spring-boot-starter-provider jar 1.0.0
org.apache.servicecomb : spring-boot-starter-discovery jar 1.0.0
org.apache.servicecomb : spring-boot-starter-registry jar 1.0.0
org.apache.servicecomb : spring-boot-starter-transport jar 1.0.0
org.apache.servicecomb : swagger-generator-core jar 1.0.0
org.apache.servicecomb : swagger-generator-jaxrs jar 1.0.0
org.apache.servicecomb : swagger-generator-springmvc jar 1.0.0
org.apache.servicecomb : swagger-invocation-core jar 1.0.0
org.apache.servicecomb : swagger-invocation-jaxrs jar 1.0.0
org.apache.servicecomb : swagger-invocation-springmvc jar 1.0.0
org.apache.servicecomb : swagger-invocation-validator jar 1.0.0
org.apache.servicecomb : foundation-common jar 1.0.0
org.apache.servicecomb : foundation-config jar 1.0.0
org.apache.servicecomb : foundation-metrics jar 1.0.0
org.apache.servicecomb : foundation-ssl jar 1.0.0
org.apache.servicecomb : foundation-vertx jar 1.0.0
org.apache.servicecomb : handler-bizkeeper jar 1.0.0
org.apache.servicecomb : handler-flowcontrol-qps jar 1.0.0
org.apache.servicecomb : handler-loadbalance jar 1.0.0
org.apache.servicecomb : handler-tracing-zipkin jar 1.0.0
org.apache.servicecomb : handler-fault-injection jar 1.0.0
org.apache.servicecomb : provider-jaxrs jar 1.0.0
org.apache.servicecomb : provider-pojo jar 1.0.0
org.apache.servicecomb : provider-rest-common jar 1.0.0
org.apache.servicecomb : provider-springmvc jar 1.0.0
org.apache.servicecomb : service-registry jar 1.0.0
org.apache.servicecomb : transport-highway jar 1.0.0
org.apache.servicecomb : transport-rest-client jar 1.0.0
org.apache.servicecomb : transport-rest-servlet jar 1.0.0
org.apache.servicecomb : transport-rest-vertx jar 1.0.0
org.apache.servicecomb : tracing-zipkin jar 1.0.0
org.apache.servicecomb : tracing-common jar 1.0.0
org.apache.servicecomb : edge-core jar 1.0.0
javax.inject : javax.inject jar 1
org.springframework : spring-aspects jar 4.3.16.RELEASE

test (10)

Group / Artifact Type Version
org.apache.servicecomb : foundation-test-scaffolding jar 1.0.0
org.awaitility : awaitility jar 3.0.0
com.github.seanyinx : unit-scaffolding jar 1.0.0
org.hamcrest : hamcrest-all jar 1.3
org.jmockit : jmockit jar 1.30
org.mockito : mockito-core jar 1.10.19
junit : junit jar 4.12
org.hamcrest : hamcrest-core jar 1.3
org.powermock : powermock-api-mockito jar 1.6.2
org.powermock : powermock-module-junit4 jar 1.6.2

Project Modules

There are no modules declared in this project.

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

Why use Java Chassis

  • High performance

    The transport capability of Java Chassis is based on Vert.x, which enables Java Chassis to process massive requests with relatively less hardware resources, and support reactive develop style.

  • Native support for OpenAPI

    Java Chassis describes the APIs of the microservices via Swagger natively, to help developers to design microservices that comply to OpenAPI standard.

  • Flexible develop style

    Currently Java Chassis allow developers to develop their microservice APIs in SpringMVC/JAX-RS/transparent RPC styles, and to send the request in RPC/RestTemplate styles. And there are three kind of build-in transport mode: Rest over Vertx/Rest over Servlet/Highway. All of these features can be combined and replaced easily, because they are decoupled and all based on the Swagger schema, which can provide high flexibility.

  • Out-of-box microservice governance features

    Java Chassis provides a lot of features for microservice governance and monitor.

  • Multi languages support

    Via ServiceComb Mesher, the microservices built by other languages are also able to work with ServiceComb components. And Java Chassis can communicate with such microservices and make use of the built-in capabilities.

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 Java Chassis Developer Guide.

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

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  -Pdemo-run-release

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

  mvn clean install -Pdocker -Pit -Pdocker-machine -Pdemo-run-release

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.

License

Licensed under an Apache 2.0 license.

Export Notice

This distribution includes cryptographic software. The country in which you currently reside may have restrictions on the import, possession, use, and/or re-export to another country, of encryption software. BEFORE using any encryption software, please check your country's laws, regulations and policies concerning the import, possession, or use, and re-export of encryption software, to see if this is permitted. See http://www.wassenaar.org/ for more information.

The Apache Software Foundation has classified this software as Export Commodity Control Number (ECCN) 5D002, which includes information security software using or performing cryptographic functions with asymmetric algorithms. The form and manner of this Apache Software Foundation distribution makes it eligible for export under the "publicly available" Section 742.15(b) exemption (see the BIS Export Administration Regulations, Section 742.15(b)) for both object code and source code.

The following provides more details on the included cryptographic software:

  • Vertx transport can be configured for secure communications
org.apache.servicecomb

The Apache Software Foundation

Versions

Version
1.0.0
1.0.0-m2
1.0.0-m1