增加开源模块

git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@46 1a56cb94-b969-4eaa-88fa-be21384802f2
This commit is contained in:
william.liangf 2011-10-25 11:55:55 +00:00
parent 33a7e60f9b
commit ac31f7d460
12 changed files with 246 additions and 7 deletions

View File

@ -20,9 +20,9 @@
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd">
<dubbo:application name="simple-consumer" monitor="simple" />
<dubbo:application name="simple-consumer" />
<dubbo:registry address="127.0.0.1:9090" />
<dubbo:registry address="zookeeper://10.20.153.10:2181" />
<dubbo:reference id="demoService" interface="com.alibaba.dubbo.demo.api.DemoService" version="1.0.0" stub="true" />

View File

@ -20,11 +20,11 @@
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd">
<dubbo:application name="simple-provider" monitor="simple" />
<dubbo:application name="simple-provider" />
<dubbo:registry address="127.0.0.1:9090" />
<dubbo:registry address="zookeeper://10.20.153.10:2181" />
<dubbo:protocol name="dubbo" port="20880" />
<dubbo:protocol name="dubbo" port="20881" />
<dubbo:service interface="com.alibaba.dubbo.demo.api.DemoService" ref="demoService" version="1.0.0" />

View File

@ -0,0 +1,35 @@
<!--
- Copyright 1999-2011 Alibaba Group.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-parent</artifactId>
<version>2.0.8-SNAPSHOT</version>
</parent>
<artifactId>dubbo-registry-multicast</artifactId>
<packaging>jar</packaging>
<name>Dubbo Multicast Registry Module</name>
<description>The multicast registry module of dubbo project</description>
<dependencies>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-registry</artifactId>
<version>${project.parent.version}</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,40 @@
<!--
- Copyright 1999-2011 Alibaba Group.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-parent</artifactId>
<version>2.0.8-SNAPSHOT</version>
</parent>
<artifactId>dubbo-registry-zookeeper</artifactId>
<packaging>jar</packaging>
<name>Dubbo Zookeeper Registry Module</name>
<description>The zookeeper registry module of dubbo project</description>
<dependencies>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-registry</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>3.3.3</version>
</dependency>
</dependencies>
</project>

View File

@ -31,5 +31,10 @@
<artifactId>dubbo-cluster</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>3.3.3</version>
</dependency>
</dependencies>
</project>

View File

@ -25,6 +25,7 @@ import com.alibaba.dubbo.common.logger.Logger;
import com.alibaba.dubbo.common.logger.LoggerFactory;
import com.alibaba.dubbo.common.utils.NetUtils;
import com.alibaba.dubbo.registry.NotifyListener;
import com.alibaba.dubbo.registry.RegistryService;
import com.alibaba.dubbo.rpc.RpcContext;
/**
@ -73,7 +74,7 @@ public class SimpleRegistryService extends AbstractRegistryService {
logger.info("[subscribe] service: "+service + ",client:"+ client);
}
List<URL> urls = getRegistered().get(service);
if ((com.alibaba.dubbo.registry.RegistryService.class.getName() + ":0.0.0").equals(service)
if ((RegistryService.class.getName() + ":0.0.0").equals(service)
&& (urls == null || urls.size() == 0)) {
register(service, new URL("dubbo",
NetUtils.getLocalHost(),

View File

@ -0,0 +1,35 @@
<!--
- Copyright 1999-2011 Alibaba Group.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-parent</artifactId>
<version>2.0.8-SNAPSHOT</version>
</parent>
<artifactId>dubbo-registry-multicast</artifactId>
<packaging>jar</packaging>
<name>Dubbo Multicast Registry Module</name>
<description>The multicast registry module of dubbo project</description>
<dependencies>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-registry</artifactId>
<version>${project.parent.version}</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,35 @@
<!--
- Copyright 1999-2011 Alibaba Group.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-parent</artifactId>
<version>2.0.8-SNAPSHOT</version>
</parent>
<artifactId>dubbo-registry-multicast</artifactId>
<packaging>jar</packaging>
<name>Dubbo Multicast Registry Module</name>
<description>The multicast registry module of dubbo project</description>
<dependencies>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-registry</artifactId>
<version>${project.parent.version}</version>
</dependency>
</dependencies>
</project>

35
dubbo-rpc-hessian/pom.xml Normal file
View File

@ -0,0 +1,35 @@
<!--
- Copyright 1999-2011 Alibaba Group.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-parent</artifactId>
<version>2.0.8-SNAPSHOT</version>
</parent>
<artifactId>dubbo-registry-multicast</artifactId>
<packaging>jar</packaging>
<name>Dubbo Multicast Registry Module</name>
<description>The multicast registry module of dubbo project</description>
<dependencies>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-registry</artifactId>
<version>${project.parent.version}</version>
</dependency>
</dependencies>
</project>

35
dubbo-rpc-rmi/pom.xml Normal file
View File

@ -0,0 +1,35 @@
<!--
- Copyright 1999-2011 Alibaba Group.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-parent</artifactId>
<version>2.0.8-SNAPSHOT</version>
</parent>
<artifactId>dubbo-registry-multicast</artifactId>
<packaging>jar</packaging>
<name>Dubbo Multicast Registry Module</name>
<description>The multicast registry module of dubbo project</description>
<dependencies>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-registry</artifactId>
<version>${project.parent.version}</version>
</dependency>
</dependencies>
</project>

View File

@ -58,12 +58,18 @@
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
<artifactSet>
<includes>
<include>com.alibaba:hessian.lite</include>
<include>com.alibaba:hessian.lite</include>
<include>com.alibaba:dubbo-common</include>
<include>com.alibaba:dubbo-remoting</include>
<include>com.alibaba:dubbo-remoting-mina</include>
<include>com.alibaba:dubbo-remoting-grizzly</include>
<include>com.alibaba:dubbo-rpc</include>
<include>com.alibaba:dubbo-rpc-rmi</include>
<include>com.alibaba:dubbo-rpc-hessian</include>
<include>com.alibaba:dubbo-cluster</include>
<include>com.alibaba:dubbo-registry</include>
<include>com.alibaba:dubbo-registry-multicast</include>
<include>com.alibaba:dubbo-registry-zookeeper</include>
<include>com.alibaba:dubbo-monitor</include>
<include>com.alibaba:dubbo-config</include>
<include>com.alibaba:dubbo-container</include>

12
pom.xml
View File

@ -29,9 +29,15 @@
<modules>
<module>dubbo-common</module>
<module>dubbo-remoting</module>
<module>dubbo-remoting-mina</module>
<module>dubbo-remoting-grizzly</module>
<module>dubbo-rpc</module>
<module>dubbo-rpc-rmi</module>
<module>dubbo-rpc-hessian</module>
<module>dubbo-cluster</module>
<module>dubbo-registry</module>
<module>dubbo-registry-multicast</module>
<module>dubbo-registry-zookeeper</module>
<module>dubbo-monitor</module>
<module>dubbo-config</module>
<module>dubbo-container</module>
@ -48,6 +54,7 @@
<xstream_version>1.4.1</xstream_version>
<fastjson_version>1.1.6</fastjson_version>
<bsf_version>3.1</bsf_version>
<zookeeper_version>3.3.3</zookeeper_version>
<!-- Log libs -->
<log4j_version>1.2.16</log4j_version>
<slf4j_version>1.6.2</slf4j_version>
@ -112,6 +119,11 @@
<artifactId>bsf-api</artifactId>
<version>${bsf_version}</version>
</dependency>
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>${zookeeper_version}</version>
</dependency>
<!-- Log libs -->
<dependency>
<groupId>log4j</groupId>