]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - server/modules/org.argeo.server.activemq.broker/META-INF/spring/activemq-broker.xml
Rename directories
[lgpl/argeo-commons.git] / server / modules / org.argeo.server.activemq.broker / META-INF / spring / activemq-broker.xml
diff --git a/server/modules/org.argeo.server.activemq.broker/META-INF/spring/activemq-broker.xml b/server/modules/org.argeo.server.activemq.broker/META-INF/spring/activemq-broker.xml
new file mode 100644 (file)
index 0000000..53d9846
--- /dev/null
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:amq="http://activemq.apache.org/schema/core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+       http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">
+
+       <bean
+               class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
+               <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
+               <property name="ignoreUnresolvablePlaceholders" value="true" />
+               <property name="locations">
+                       <value>osgibundle:activemq.properties
+                       </value>
+               </property>
+       </bean>
+
+       <!-- Embedded broker -->
+       <amq:broker id="broker" useJmx="false" persistent="false">
+               <amq:transportConnectors>
+                       <amq:transportConnector uri="${slc.server.jms.url}" />
+                       <!-- <amq:transportConnector uri="xmpp://localhost:61222" /> -->
+               </amq:transportConnectors>
+       </amq:broker>
+</beans>
\ No newline at end of file