Browse Source
This commit allows to use place holder definitions for JmsListener attributes, effectively allowing to externalize those settings from the code. Issue: SPR-12134pull/641/head
6 changed files with 95 additions and 7 deletions
@ -0,0 +1,22 @@
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<beans xmlns="http://www.springframework.org/schema/beans" |
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xmlns:jms="http://www.springframework.org/schema/jms" |
||||
xmlns:context="http://www.springframework.org/schema/context" |
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans |
||||
http://www.springframework.org/schema/beans/spring-beans.xsd |
||||
http://www.springframework.org/schema/jms |
||||
http://www.springframework.org/schema/jms/spring-jms-4.1.xsd |
||||
http://www.springframework.org/schema/context |
||||
http://www.springframework.org/schema/context/spring-context.xsd"> |
||||
|
||||
<jms:annotation-driven/> |
||||
|
||||
<bean class="org.springframework.jms.annotation.AbstractJmsAnnotationDrivenTests$FullConfigurableBean"/> |
||||
|
||||
<bean id="simpleFactory" class="org.springframework.jms.config.JmsListenerContainerTestFactory"/> |
||||
|
||||
<context:property-placeholder location="classpath:org/springframework/jms/annotation/jms-listener.properties"/> |
||||
|
||||
|
||||
</beans> |
||||
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
jms.listener.id=listener1 |
||||
jms.listener.containerFactory=simpleFactory |
||||
jms.listener.destination=queueIn |
||||
jms.listener.selector=mySelector |
||||
jms.listener.subscription=mySubscription |
||||
jms.listener.concurrency=1-10 |
||||
Loading…
Reference in new issue