JavaSky
JavaBird
posts - 8,  comments - 9,  trackbacks - 0
1.缺少log4j.properties文件,放在config目录/resource目录下;
2.不断的重复提示
Socket connection established to 172.18.0.152/172.18.0.152:8081, initiating session
2013-01-26 15:15:05,384 [INFO ][main-SendThread(172.18.0.152:8081)] method:org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1159)
    Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
2013-01-26 15:15:07,018 [INFO ][main-SendThread(172.18.0.152:8081)] method:org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:1041)
    Opening socket connection to server 172.18.0.152/172.18.0.152:8081
2013-01-26 15:15:07,020 [INFO ][main-SendThread(172.18.0.152:8081)] method:org.apache.zookeeper.ClientCnxn$SendThread.primeConnection(ClientCnxn.java:949)
    Socket connection established to 172.18.0.152/172.18.0.152:8081, initiating session
原因是我把dubbo.properties文件中name为 dubbo.registry.address 的值端口号修改为8081,改回原来的2181,OK

访问注册服务器时的地址端口号为 8081

一、发布一个服务器和客户端程序:
1.在服务器的
dubbo-provider.xml <dubbo:service
  timeout="5000"
  interface="com.service.GoodsInterfaceService"
  ref="goodsInterfaceService"  group="groupA"/>

2.在客户端:
dubbo-customer.xml
<dubbo:reference group="groupA" interface="com.service.GoodsInterfaceService" id="goodsInterfaceService"></dubbo:reference>

 
posted on 2013-01-26 15:17 JavaBird 阅读(873) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航:
 

<2024年11月>
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

常用链接

留言簿

随笔分类

随笔档案

文章分类

文章档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜