on 2018 Apr 02 12:22 PM
Hello Experts,
In prodction, we want to enable hot folder only in one node (let's say dataserver node). so do we need to configuration changes ?
Any pointers in this regard ?
Request clarification before answering.
It will be easier to implement hot folder beans loading for concrete profile. I mean something like
<beans profile='node_dataserver'>...</beans>
Profile could be setted up using properties or during application context startup (to make implementation more generinc and resolve node group in runtime).
Take a look at spring.profiles.active property
Related docs: https://docs.spring.io/spring-boot/docs/current/reference/html/howto-properties-and-configuration.ht...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gnanendra,
You need to configure the inbound-channel-adapter with auto-startup flag to disable it on other nodes. The sample configuration would be as follows:
<file:inbound-channel-adapter id="{id}" directory="{directory}"
filename-regex="{filename-regex}" auto-startup="false" >
</file:inbound-channel-adapter>
Move the auto-startup value to property file and read it via configurationService here.
regards, Narender
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.