/
applicationContext.xml
61 lines (54 loc) · 2.7 KB
/
applicationContext.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.springframework.org/schema/beans"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<bean class="org.bcos.web3j.utils.Async" id="async">
<constructor-arg ref="pool"
type="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor"/>
</bean>
<bean class="org.bcos.web3j.utils.AttemptsConf" id="attemptsConf">
<constructor-arg index="0" value="1200"/>
<constructor-arg index="1" value="10"/>
</bean>
<bean class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor" id="pool">
<property name="corePoolSize" value="100"/>
<property name="maxPoolSize" value="200"/>
<property name="queueCapacity" value="1000"/>
<property name="keepAliveSeconds" value="60"/>
<property name="rejectedExecutionHandler">
<bean class="java.util.concurrent.ThreadPoolExecutor.AbortPolicy"/>
</property>
</bean>
<bean class="org.bcos.contract.tools.ToolConf" id="toolConf">
<property name="systemProxyAddress" value="0x3ca60c68c6264ab08c05ae2df4bfc384c81ebcef"/>
<property name="privKey"
value="bcec428d5205abe0f0cc8a734083908d9eb8563e31f943d760786edf42ad67dd"/>
<property name="account" value="0x1914dc80628aaabd66cf23297fbd6feb14da6ce7"/>
<property name="outPutpath" value="./output/"/>
</bean>
<bean class="org.bcos.channel.proxy.Server" id="server">
</bean>
<bean class="org.bcos.channel.client.Service" id="channelService">
<property name="orgID" value="WeEvent"/>
<property name="connectSeconds" value="10"/>
<property name="connectSleepPerMillis" value="10"/>
<property name="allChannelConnections">
<map>
<entry key="WeEvent">
<bean class="org.bcos.channel.handler.ChannelConnections">
<property name="caCertPath" value="classpath:ca.crt"/>
<property name="clientKeystorePath" value="classpath:client.keystore"/>
<property name="keystorePassWord" value="123456"/>
<property name="clientCertPassWord" value="123456"/>
<property name="connectionsStr">
<list>
<value>WeEvent@127.0.0.1:8821</value>
</list>
</property>
</bean>
</entry>
</map>
</property>
</bean>
</beans>