To make the JMS topic subscription durable, it seems I need to make sure
- DefaultMessageListenerContainer (instead of the default SimpleMessageListenerContainer) is used
- stream definition contains "durableSubscription=true acknowledge=transacted subscriptionName=xxxx pubSub=true"
I managed to enable 'dmlc' by specifying spring.profiles.active in xd-singlenode.bat but is there a better way such as using properties or yml?
xd-singlenode.bat
set SPRING_XD_OPTS=-Dspring.profiles.active=singlenode,dmlc -Dspring.application.name=singlenode -Dlogging.config=%XD_CONFIG_LOCATION%/xd-singlenode-logback.groovy -Dxd.home=%XD_HOME%