Skip to content

Commit 5e1fab1

Browse files
committed
do not close application context as it closes connection to JMS.
do not use p: tag as it is not working in shaded.jar
1 parent 2e11222 commit 5e1fab1

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

server/src/main/java/com/bitsofproof/supernode/main/Main.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ public static void main (String[] args) throws Exception
8787
ctx.load ("file:config/*-profile.xml");
8888
ctx.refresh ();
8989
ctx.getBean (App.class).start (a.toArray (new String[0]));
90-
ctx.close ();
9190
}
9291
catch ( Exception e )
9392
{

server/src/main/resources/context/BCSAPI-profile.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<beans profile="BCSAPI"
33
xmlns="http://www.springframework.org/schema/beans"
44
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xmlns:p="http://www.springframework.org/schema/p"
65
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
76

87
<beans profile="apollo">
@@ -14,11 +13,12 @@
1413
</beans>
1514

1615
<beans profile="activemq" >
17-
<bean id="jmsFactory" class="org.apache.activemq.ActiveMQConnectionFactory"
18-
p:userName="sa"
19-
p:password="manager"
20-
p:brokerURL="tcp://localhost:61616"
21-
p:clientID="bitsofproof-supernode-testnet3"/>
16+
<bean id="jmsFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
17+
<property name="userName" value="sa"/>
18+
<property name="password" value="manager"/>
19+
<property name="brokerURL" value="tcp://localhost:61616"/>
20+
<property name="clientID" value="bitsofproof-supernode"/>
21+
</bean>
2222
</beans>
2323

2424
<beans>

0 commit comments

Comments
 (0)