Skip to content

Commit

Permalink
update the readme doc (#5)
Browse files Browse the repository at this point in the history
* update the readme doc

* update the stomp sample

* format readme doc

* update the stomp sample

* fix the is connected value in the stomp sample

* remove the dist/conf

* update the web3sdkutil main

* update the sleep time
  • Loading branch information
Cristic authored and saintping committed Apr 23, 2019
1 parent cf0cbe3 commit 15dc4bb
Show file tree
Hide file tree
Showing 14 changed files with 8 additions and 218 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ WeEvent由微众银行自主研发并完全开源,秉承分布式商业模式

### 快速入门
- 安装前置依赖
区块链是`WeEvent`的前置依赖,用户需要提前安装,具体操作见[FISCO-BCOS文档](https://fisco-bcos-documentation.readthedocs.io/zh_CN/release-1.3/docs/tools/index.html)

在体验WeEvent之前,用户需提前搭建好区块链,WeEvent现已支持FISCO BCOS区块链底层平台,具体操作见[FISCO-BCOS文档](https://fisco-bcos-documentation.readthedocs.io/zh_CN/release-1.3/docs/tools/index.html)
- 搭建服务

快速搭建一套`WeEvent`服务,请参考[文档](https://weeventdoc.readthedocs.io/zh_CN/latest/install/quickinstall.html)。通过一键部署的`WeEvent`服务,用户可以快速体验和开发。

- 体验订阅

参见[更多代码样例](https://github.com/WeBankFinTech/WeEvent/tree/master/src/test/java/com/webank/weevent/sample)


Expand Down
4 changes: 2 additions & 2 deletions dist/broker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ start(){
echo "broker is running, (PID=$currentbroker_pid)"
else
nohup java ${JAVA_OPTS} -Xbootclasspath/a:./conf -jar ./apps/* >/dev/null 2>&1 &
sleep 1
sleep 3
eventbroker_pid=$!
if [ -n "$eventbroker_pid" ];then
echo "start broker success (PID=$eventbroker_pid)"
if [ -f $brokerpid_path ]; then
echo "${eventbroker_pid}" >$brokerpid_path
else
touch $brokerpid_path;
sleep 1
sleep 3
echo "${eventbroker_pid}" >$brokerpid_path
fi

Expand Down
26 changes: 0 additions & 26 deletions dist/conf/application-dev.properties

This file was deleted.

27 changes: 0 additions & 27 deletions dist/conf/application-prod.properties

This file was deleted.

1 change: 0 additions & 1 deletion dist/conf/application.properties

This file was deleted.

61 changes: 0 additions & 61 deletions dist/conf/applicationContext.xml

This file was deleted.

7 changes: 0 additions & 7 deletions dist/conf/banner.txt

This file was deleted.

43 changes: 0 additions & 43 deletions dist/conf/ca.crt

This file was deleted.

Binary file removed dist/conf/client.keystore
Binary file not shown.
22 changes: 0 additions & 22 deletions dist/conf/log4j.properties

This file was deleted.

26 changes: 0 additions & 26 deletions dist/conf/log4j2.xml

This file was deleted.

Binary file removed dist/conf/server.p12
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ public static void main(String[] args) {
}
} catch (Exception e) {
e.printStackTrace();
System.exit(1);
}

// web3sdk can't exit gracefully
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/com/webank/weevent/sample/Stomp.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ public void handleException(StompSession session, StompCommand command, StompHea

@Override
public void handleTransportError(StompSession session, Throwable exception) {
if (exception instanceof ConnectionLostException) {
if (exception instanceof ConnectionLostException||!isConnected) {
log.info("connection closed, {}", session.getSessionId());

isConnected=false;
// do auto reconnect in this handle
while (!isConnected) try {
// retry every 3 seconds
Expand Down

0 comments on commit 15dc4bb

Please sign in to comment.