This is an automated email from the ASF dual-hosted git repository. alexstocks pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-benchmark.git
commit 58f95dce8fab1e3598944939b1325e9e8e831d72 Author: CodingSinger <[email protected]> AuthorDate: Mon Jul 22 11:18:30 2019 +0800 add arvo、gson、fastsjon、protostuff --- .../pom.xml | 19 ++++++------------ dubbo-avro-client/src/main/resources/consumer.xml | 16 +++++++++++++++ .../pom.xml | 14 +++---------- dubbo-avro-server/src/main/resources/provider.xml | 16 +++++++++++++++ .../pom.xml | 15 ++++---------- .../src/main/resources/consumer.xml | 16 +++++++++++++++ .../pom.xml | 15 ++++---------- .../src/main/resources/provider.xml | 16 +++++++++++++++ .../pom.xml | 18 ++--------------- dubbo-gson-client/src/main/resources/consumer.xml | 12 +++++++++++ .../pom.xml | 18 ++--------------- dubbo-gson-server/src/main/resources/provider.xml | 12 +++++++++++ dubbo-native-hessian-server/pom.xml | 2 +- .../pom.xml | 23 ++++++++++++---------- .../src/main/resources/consumer.xml | 12 +++++++++++ .../pom.xml | 23 ++++++++++++---------- .../src/main/resources/provider.xml | 13 ++++++++++++ pom.xml | 10 +++++++++- 18 files changed, 170 insertions(+), 100 deletions(-) diff --git a/dubbo-native-hessian-server/pom.xml b/dubbo-avro-client/pom.xml similarity index 74% copy from dubbo-native-hessian-server/pom.xml copy to dubbo-avro-client/pom.xml index 5e7cbd4..ea76927 100644 --- a/dubbo-native-hessian-server/pom.xml +++ b/dubbo-avro-client/pom.xml @@ -9,40 +9,33 @@ </parent> <modelVersion>4.0.0</modelVersion> - <artifactId>dubbo-native-hessian-server</artifactId> - + <artifactId>dubbo-avro-client</artifactId> <dependencies> <dependency> - <groupId>org.apache.dubbo</groupId> - <artifactId>server-base</artifactId> - <version>${project.version}</version> - </dependency> - - <dependency> - <groupId>org.apache.dubbo</groupId> - <artifactId>dubbo-serialization-native-hessian</artifactId> + <groupId>org.apache.avro</groupId> + <artifactId>avro</artifactId> </dependency> </dependencies> - <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> + <inherited>true</inherited> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> + <inherited>true</inherited> <configuration> <archive> <manifest> - <mainClass>org.apache.dubbo.benchmark.Server</mainClass> + <mainClass>org.apache.dubbo.benchmark.Client</mainClass> </manifest> </archive> </configuration> </plugin> </plugins> </build> - </project> \ No newline at end of file diff --git a/dubbo-avro-client/src/main/resources/consumer.xml b/dubbo-avro-client/src/main/resources/consumer.xml new file mode 100644 index 0000000..eb6950d --- /dev/null +++ b/dubbo-avro-client/src/main/resources/consumer.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dubbo="http://code.alibabatech.com/schema/dubbo" + xmlns:context="http://www.springframework.org/schema/context" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> + <context:property-placeholder location="classpath:benchmark.properties" system-properties-mode="OVERRIDE"/> + <dubbo:application name="dubbo-avro-client"/> + <!-- FIXME: need to investigate why serialization optimizer doesn't work --> + <!--<dubbo:reference id="userService" check="false"--> + <!--interface="org.apache.dubbo.benchmark.service.UserService"--> + <!--url="dubbo://${server.host}:${server.port}?optimizer=org.apache.dubbo.benchmark.serialize.SerializationOptimizerImpl&serialization=fst"/>--> + <dubbo:reference id="userService" check="false" + interface="org.apache.dubbo.benchmark.service.UserService" + url="dubbo://${server.host}:${server.port}?serialization=avro"/> + <dubbo:consumer client="netty4" filter="-default"/> +</beans> \ No newline at end of file diff --git a/dubbo-native-hessian-server/pom.xml b/dubbo-avro-server/pom.xml similarity index 76% copy from dubbo-native-hessian-server/pom.xml copy to dubbo-avro-server/pom.xml index 5e7cbd4..ba3e693 100644 --- a/dubbo-native-hessian-server/pom.xml +++ b/dubbo-avro-server/pom.xml @@ -9,21 +9,14 @@ </parent> <modelVersion>4.0.0</modelVersion> - <artifactId>dubbo-native-hessian-server</artifactId> + <artifactId>dubbo-avro-server</artifactId> <dependencies> <dependency> - <groupId>org.apache.dubbo</groupId> - <artifactId>server-base</artifactId> - <version>${project.version}</version> - </dependency> - - <dependency> - <groupId>org.apache.dubbo</groupId> - <artifactId>dubbo-serialization-native-hessian</artifactId> + <groupId>org.apache.avro</groupId> + <artifactId>avro</artifactId> </dependency> </dependencies> - <build> <plugins> <plugin> @@ -44,5 +37,4 @@ </plugin> </plugins> </build> - </project> \ No newline at end of file diff --git a/dubbo-avro-server/src/main/resources/provider.xml b/dubbo-avro-server/src/main/resources/provider.xml new file mode 100644 index 0000000..0a1cc36 --- /dev/null +++ b/dubbo-avro-server/src/main/resources/provider.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dubbo="http://code.alibabatech.com/schema/dubbo" + xmlns:context="http://www.springframework.org/schema/context" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> + <context:property-placeholder location="classpath:benchmark.properties" system-properties-mode="OVERRIDE"/> + <dubbo:application name="dubbo-avro-server"/> + + <!-- FIXME: need to investigate why serialization optimizer doesn't work --> + <!--<dubbo:protocol name="dubbo" host="${server.host}" server="netty4" port="${server.port}" serialization="fst"--> + <!--optimizer="org.apache.dubbo.benchmark.serialize.SerializationOptimizerImpl"/>--> + <dubbo:protocol name="dubbo" host="${server.host}" server="netty4" port="${server.port}" serialization="avro"/> + <dubbo:registry address="N/A"/> + <dubbo:service interface="org.apache.dubbo.benchmark.service.UserService" ref="userService" filter="-default"/> + <bean id="userService" class="org.apache.dubbo.benchmark.service.UserServiceServerImpl"/> +</beans> \ No newline at end of file diff --git a/dubbo-native-hessian-server/pom.xml b/dubbo-fastjson-client/pom.xml similarity index 76% copy from dubbo-native-hessian-server/pom.xml copy to dubbo-fastjson-client/pom.xml index 5e7cbd4..8846b59 100644 --- a/dubbo-native-hessian-server/pom.xml +++ b/dubbo-fastjson-client/pom.xml @@ -9,21 +9,15 @@ </parent> <modelVersion>4.0.0</modelVersion> - <artifactId>dubbo-native-hessian-server</artifactId> + <artifactId>dubbo-fastjson-client</artifactId> <dependencies> <dependency> - <groupId>org.apache.dubbo</groupId> - <artifactId>server-base</artifactId> - <version>${project.version}</version> - </dependency> - - <dependency> - <groupId>org.apache.dubbo</groupId> - <artifactId>dubbo-serialization-native-hessian</artifactId> + <groupId>com.alibaba</groupId> + <artifactId>fastjson</artifactId> + <version>1.2.58</version> </dependency> </dependencies> - <build> <plugins> <plugin> @@ -44,5 +38,4 @@ </plugin> </plugins> </build> - </project> \ No newline at end of file diff --git a/dubbo-fastjson-client/src/main/resources/consumer.xml b/dubbo-fastjson-client/src/main/resources/consumer.xml new file mode 100644 index 0000000..bddeb47 --- /dev/null +++ b/dubbo-fastjson-client/src/main/resources/consumer.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dubbo="http://code.alibabatech.com/schema/dubbo" + xmlns:context="http://www.springframework.org/schema/context" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> + <context:property-placeholder location="classpath:benchmark.properties" system-properties-mode="OVERRIDE"/> + <dubbo:application name="dubbo-fastjson-client"/> + <!-- FIXME: need to investigate why serialization optimizer doesn't work --> + <!--<dubbo:reference id="userService" check="false"--> + <!--interface="org.apache.dubbo.benchmark.service.UserService"--> + <!--url="dubbo://${server.host}:${server.port}?optimizer=org.apache.dubbo.benchmark.serialize.SerializationOptimizerImpl&serialization=fst"/>--> + <dubbo:reference id="userService" check="false" + interface="org.apache.dubbo.benchmark.service.UserService" + url="dubbo://${server.host}:${server.port}?serialization=fastjson"/> + <dubbo:consumer client="netty4" filter="-default"/> +</beans> \ No newline at end of file diff --git a/dubbo-native-hessian-server/pom.xml b/dubbo-fastjson-server/pom.xml similarity index 76% copy from dubbo-native-hessian-server/pom.xml copy to dubbo-fastjson-server/pom.xml index 5e7cbd4..5654d8d 100644 --- a/dubbo-native-hessian-server/pom.xml +++ b/dubbo-fastjson-server/pom.xml @@ -9,21 +9,15 @@ </parent> <modelVersion>4.0.0</modelVersion> - <artifactId>dubbo-native-hessian-server</artifactId> + <artifactId>dubbo-fastjson-server</artifactId> <dependencies> <dependency> - <groupId>org.apache.dubbo</groupId> - <artifactId>server-base</artifactId> - <version>${project.version}</version> - </dependency> - - <dependency> - <groupId>org.apache.dubbo</groupId> - <artifactId>dubbo-serialization-native-hessian</artifactId> + <groupId>com.alibaba</groupId> + <artifactId>fastjson</artifactId> + <version>1.2.58</version> </dependency> </dependencies> - <build> <plugins> <plugin> @@ -44,5 +38,4 @@ </plugin> </plugins> </build> - </project> \ No newline at end of file diff --git a/dubbo-fastjson-server/src/main/resources/provider.xml b/dubbo-fastjson-server/src/main/resources/provider.xml new file mode 100644 index 0000000..25ec43c --- /dev/null +++ b/dubbo-fastjson-server/src/main/resources/provider.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dubbo="http://code.alibabatech.com/schema/dubbo" + xmlns:context="http://www.springframework.org/schema/context" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> + <context:property-placeholder location="classpath:benchmark.properties" system-properties-mode="OVERRIDE"/> + <dubbo:application name="dubbo-fastjson-server"/> + + <!-- FIXME: need to investigate why serialization optimizer doesn't work --> + <!--<dubbo:protocol name="dubbo" host="${server.host}" server="netty4" port="${server.port}" serialization="fst"--> + <!--optimizer="org.apache.dubbo.benchmark.serialize.SerializationOptimizerImpl"/>--> + <dubbo:protocol name="dubbo" host="${server.host}" server="netty4" port="${server.port}" serialization="fastjson"/> + <dubbo:registry address="N/A"/> + <dubbo:service interface="org.apache.dubbo.benchmark.service.UserService" ref="userService" filter="-default"/> + <bean id="userService" class="org.apache.dubbo.benchmark.service.UserServiceServerImpl"/> +</beans> \ No newline at end of file diff --git a/dubbo-native-hessian-server/pom.xml b/dubbo-gson-client/pom.xml similarity index 69% copy from dubbo-native-hessian-server/pom.xml copy to dubbo-gson-client/pom.xml index 5e7cbd4..98d29bd 100644 --- a/dubbo-native-hessian-server/pom.xml +++ b/dubbo-gson-client/pom.xml @@ -9,20 +9,7 @@ </parent> <modelVersion>4.0.0</modelVersion> - <artifactId>dubbo-native-hessian-server</artifactId> - - <dependencies> - <dependency> - <groupId>org.apache.dubbo</groupId> - <artifactId>server-base</artifactId> - <version>${project.version}</version> - </dependency> - - <dependency> - <groupId>org.apache.dubbo</groupId> - <artifactId>dubbo-serialization-native-hessian</artifactId> - </dependency> - </dependencies> + <artifactId>dubbo-gson-client</artifactId> <build> <plugins> @@ -37,12 +24,11 @@ <configuration> <archive> <manifest> - <mainClass>org.apache.dubbo.benchmark.Server</mainClass> + <mainClass>org.apache.dubbo.benchmark.Client</mainClass> </manifest> </archive> </configuration> </plugin> </plugins> </build> - </project> \ No newline at end of file diff --git a/dubbo-gson-client/src/main/resources/consumer.xml b/dubbo-gson-client/src/main/resources/consumer.xml new file mode 100644 index 0000000..5c44bbf --- /dev/null +++ b/dubbo-gson-client/src/main/resources/consumer.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dubbo="http://code.alibabatech.com/schema/dubbo" + xmlns:context="http://www.springframework.org/schema/context" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> + <context:property-placeholder location="classpath:benchmark.properties" system-properties-mode="OVERRIDE"/> + <dubbo:application name="dubbo-kyro-client"/> + <dubbo:reference id="userService" check="false" + interface="org.apache.dubbo.benchmark.service.UserService" + url="dubbo://${server.host}:${server.port}?serialization=gson"/> + <dubbo:consumer client="netty4" filter="-default"/> +</beans> \ No newline at end of file diff --git a/dubbo-native-hessian-server/pom.xml b/dubbo-gson-server/pom.xml similarity index 69% copy from dubbo-native-hessian-server/pom.xml copy to dubbo-gson-server/pom.xml index 5e7cbd4..09a58f9 100644 --- a/dubbo-native-hessian-server/pom.xml +++ b/dubbo-gson-server/pom.xml @@ -9,20 +9,7 @@ </parent> <modelVersion>4.0.0</modelVersion> - <artifactId>dubbo-native-hessian-server</artifactId> - - <dependencies> - <dependency> - <groupId>org.apache.dubbo</groupId> - <artifactId>server-base</artifactId> - <version>${project.version}</version> - </dependency> - - <dependency> - <groupId>org.apache.dubbo</groupId> - <artifactId>dubbo-serialization-native-hessian</artifactId> - </dependency> - </dependencies> + <artifactId>dubbo-gson-server</artifactId> <build> <plugins> @@ -37,12 +24,11 @@ <configuration> <archive> <manifest> - <mainClass>org.apache.dubbo.benchmark.Server</mainClass> + <mainClass>org.apache.dubbo.benchmark.Client</mainClass> </manifest> </archive> </configuration> </plugin> </plugins> </build> - </project> \ No newline at end of file diff --git a/dubbo-gson-server/src/main/resources/provider.xml b/dubbo-gson-server/src/main/resources/provider.xml new file mode 100644 index 0000000..abd1f6e --- /dev/null +++ b/dubbo-gson-server/src/main/resources/provider.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dubbo="http://code.alibabatech.com/schema/dubbo" + xmlns:context="http://www.springframework.org/schema/context" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> + <context:property-placeholder location="classpath:benchmark.properties" system-properties-mode="OVERRIDE"/> + <dubbo:application name="dubbo-gson-server"/> + <dubbo:protocol name="dubbo" host="${server.host}" server="netty4" port="${server.port}" serialization="gson"/> + <dubbo:registry address="N/A"/> + <dubbo:service interface="org.apache.dubbo.benchmark.service.UserService" ref="userService" filter="-default"/> + <bean id="userService" class="org.apache.dubbo.benchmark.service.UserServiceServerImpl"/> +</beans> \ No newline at end of file diff --git a/dubbo-native-hessian-server/pom.xml b/dubbo-native-hessian-server/pom.xml index 5e7cbd4..c1421b8 100644 --- a/dubbo-native-hessian-server/pom.xml +++ b/dubbo-native-hessian-server/pom.xml @@ -20,7 +20,7 @@ <dependency> <groupId>org.apache.dubbo</groupId> - <artifactId>dubbo-serialization-native-hessian</artifactId> + <artifactId>dubbo-serialization-native-hession</artifactId> </dependency> </dependencies> diff --git a/dubbo-native-hessian-server/pom.xml b/dubbo-protostuff-client/pom.xml similarity index 70% copy from dubbo-native-hessian-server/pom.xml copy to dubbo-protostuff-client/pom.xml index 5e7cbd4..55b0c95 100644 --- a/dubbo-native-hessian-server/pom.xml +++ b/dubbo-protostuff-client/pom.xml @@ -9,21 +9,25 @@ </parent> <modelVersion>4.0.0</modelVersion> - <artifactId>dubbo-native-hessian-server</artifactId> + <artifactId>dubbo-protostuff-client</artifactId> <dependencies> + <!-- Protostuff --> <dependency> - <groupId>org.apache.dubbo</groupId> - <artifactId>server-base</artifactId> - <version>${project.version}</version> + <groupId>io.protostuff</groupId> + <artifactId>protostuff-core</artifactId> </dependency> - <dependency> - <groupId>org.apache.dubbo</groupId> - <artifactId>dubbo-serialization-native-hessian</artifactId> + <groupId>io.protostuff</groupId> + <artifactId>protostuff-runtime</artifactId> + </dependency> + <!-- Objenesis --> + <dependency> + <groupId>org.objenesis</groupId> + <artifactId>objenesis</artifactId> + <version>2.5</version> </dependency> </dependencies> - <build> <plugins> <plugin> @@ -37,12 +41,11 @@ <configuration> <archive> <manifest> - <mainClass>org.apache.dubbo.benchmark.Server</mainClass> + <mainClass>org.apache.dubbo.benchmark.Client</mainClass> </manifest> </archive> </configuration> </plugin> </plugins> </build> - </project> \ No newline at end of file diff --git a/dubbo-protostuff-client/src/main/resources/consumer.xml b/dubbo-protostuff-client/src/main/resources/consumer.xml new file mode 100644 index 0000000..465157d --- /dev/null +++ b/dubbo-protostuff-client/src/main/resources/consumer.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dubbo="http://code.alibabatech.com/schema/dubbo" + xmlns:context="http://www.springframework.org/schema/context" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> + <context:property-placeholder location="classpath:benchmark.properties" system-properties-mode="OVERRIDE"/> + <dubbo:application name="dubbo-protostuff-client"/> + <dubbo:reference id="userService" check="false" + interface="org.apache.dubbo.benchmark.service.UserService" + url="dubbo://${server.host}:${server.port}?serialization=protostuff"/> + <dubbo:consumer client="netty4" filter="-default"/> +</beans> \ No newline at end of file diff --git a/dubbo-native-hessian-server/pom.xml b/dubbo-protostuff-server/pom.xml similarity index 70% copy from dubbo-native-hessian-server/pom.xml copy to dubbo-protostuff-server/pom.xml index 5e7cbd4..2ff8a28 100644 --- a/dubbo-native-hessian-server/pom.xml +++ b/dubbo-protostuff-server/pom.xml @@ -9,21 +9,25 @@ </parent> <modelVersion>4.0.0</modelVersion> - <artifactId>dubbo-native-hessian-server</artifactId> + <artifactId>dubbo-protostuff-server</artifactId> <dependencies> + <!-- Protostuff --> <dependency> - <groupId>org.apache.dubbo</groupId> - <artifactId>server-base</artifactId> - <version>${project.version}</version> + <groupId>io.protostuff</groupId> + <artifactId>protostuff-core</artifactId> </dependency> - <dependency> - <groupId>org.apache.dubbo</groupId> - <artifactId>dubbo-serialization-native-hessian</artifactId> + <groupId>io.protostuff</groupId> + <artifactId>protostuff-runtime</artifactId> + </dependency> + <!-- Objenesis --> + <dependency> + <groupId>org.objenesis</groupId> + <artifactId>objenesis</artifactId> + <version>2.5</version> </dependency> </dependencies> - <build> <plugins> <plugin> @@ -37,12 +41,11 @@ <configuration> <archive> <manifest> - <mainClass>org.apache.dubbo.benchmark.Server</mainClass> + <mainClass>org.apache.dubbo.benchmark.Client</mainClass> </manifest> </archive> </configuration> </plugin> </plugins> </build> - </project> \ No newline at end of file diff --git a/dubbo-protostuff-server/src/main/resources/provider.xml b/dubbo-protostuff-server/src/main/resources/provider.xml new file mode 100644 index 0000000..85cb563 --- /dev/null +++ b/dubbo-protostuff-server/src/main/resources/provider.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dubbo="http://code.alibabatech.com/schema/dubbo" + xmlns:context="http://www.springframework.org/schema/context" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> + <context:property-placeholder location="classpath:benchmark.properties" system-properties-mode="OVERRIDE"/> + <dubbo:application name="dubbo-protostuff-server"/> + <dubbo:protocol name="dubbo" host="${server.host}" server="netty4" port="${server.port}" + serialization="protostuff"/> + <dubbo:registry address="N/A"/> + <dubbo:service interface="org.apache.dubbo.benchmark.service.UserService" ref="userService" filter="-default"/> + <bean id="userService" class="org.apache.dubbo.benchmark.service.UserServiceServerImpl"/> +</beans> \ No newline at end of file diff --git a/pom.xml b/pom.xml index 408e17f..783d373 100644 --- a/pom.xml +++ b/pom.xml @@ -35,6 +35,14 @@ <module>dubbo-fst-server</module> <module>dubbo-native-hessian-client</module> <module>dubbo-native-hessian-server</module> + <module>dubbo-avro-server</module> + <module>dubbo-avro-client</module> + <module>dubbo-fastjson-client</module> + <module>dubbo-fastjson-server</module> + <module>dubbo-protostuff-server</module> + <module>dubbo-protostuff-client</module> + <module>dubbo-gson-server</module> + <module>dubbo-gson-client</module> </modules> <dependencies> @@ -128,7 +136,7 @@ </dependency> <dependency> <groupId>org.apache.dubbo</groupId> - <artifactId>dubbo-serialization-native-hessian</artifactId> + <artifactId>dubbo-serialization-native-hession</artifactId> <version>${dubbo.version}</version> </dependency> </dependencies>
