cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Does the hot folders structure gets created automatically?

Former Member
0 Likes
716

Hi Experts,

I am working on the hot folder and have specified the folder names like input, peocrssed and errors in hot folders spring. Xml and I am expecting once we do ant clean all the same folder structure should get created automatically. In the specified path but it is not happening.

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

arvind-kumar_avinash
Active Contributor
0 Likes

The folders should get created automatically after you restart the server. However, if you have already created them as per your configuration, they will not be recreated (i.e. deleted & created again). I hope your configurations are correct. You can check https://wiki.hybris.com/pages/viewpage.action?pageId=294094383 to compare your configurations.

arvind-kumar_avinash
Active Contributor
0 Likes

- any update about your problem? If you found something that can be useful to others, you can share that.

Former Member
0 Likes

Arvind Sir ! Thanks for the suggestion. I had forget to mention in my post that we are not using hybris hot folder OOTB, instead we are using the the spring integration hot folder. As we have to receive xml as a feed.

I created the the hot folder manually and also had some issue with configuration which i corrected and it started working now and files are being processed. I still did not found in any blog whether the folder structure would be created automatically or we have to create it manually in case of spring integration hot folders.

Former Member
0 Likes

Now have another issue, i am using AcceptOnceFileListFilter in adapter inbound for filter the file. If a file withe name - Feed1 get processed first time successfully and moved to processed folder, now again if i am putting Feed1 in the input folder it will not get processed.

I found some link on expert and they are suggesting AcceptOnceFileListFilter does not allow to process file with same name. If i want to process file name with same name which filter should i use and what would be the implementation.

arvind-kumar_avinash
Active Contributor
0 Likes

A server restart should reset it but I can understand that it may not be an option and also not a strategic solution.

Please check if https://stackoverflow.com/questions/45035243/spring-integration-unable-to-send-the-files-with-same-n... solves your problem.

I have not faced this situation so, I can just point you to some resources that I found as a result of Google search. Another link, although an old one, with a similar problem, is http://forum.spring.io/forum/spring-projects/integration/110807-disable-duplicate-files-filter-for-f...

Answers (1)

Answers (1)

geffchang
Active Contributor
0 Likes

If I remember correctly, the folders automcatically get created after hotfolder processes a file. Or, you can create them yourself.

At the minimum, you need to create the folder for the Input Channel, since this is where you will put/upload the files to be processed. The folders for the Output Channel can be created automatically.

Former Member
0 Likes

Thanks for the suggestion.