Place holder resolution in @JmsListener arguments
This commit allows to use place holder definitions for JmsListener attributes, effectively allowing to externalize those settings from the code. Issue: SPR-12134
This commit is contained in:
@@ -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 @@
|
||||
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
|
||||
Reference in New Issue
Block a user