Page 1 of 1

Mass import using Spring Integration

Posted: Mon Dec 24, 2012 2:16 pm
by alexhutnik
I've been working on building my own demo based on Heat Clinic. I have a large number of products I'd like to import without manually generating any SQL or entering them in one-by-one in the Admin console. I have about 1300 files to process (each file contains the info of a single product). My initial thought is to set up a Spring Integration file poller to bring in each of the files and parse it into an entity that extends Product. My question then is: Do I then just need to autowire in the blProductDao and call .save(Product p) on it? Or is there a different bean I should use?

Re: Mass import using Spring Integration

Posted: Fri Apr 12, 2013 2:35 pm
by jefffischer
That sounds reasonable. The only thing I would do differently is call saveProduct on CatalogService (blCatalogService).

Re: Mass import using Spring Integration

Posted: Wed Feb 19, 2014 7:02 am
by ackuser
First of all, I'm trying to do the same thing. I want to know if you got it with Catalog Service :?: . To be honest I am a beginner :mrgreen: with Spring, so it's difficult for me to adapt the Spring context. I think you can only use the CatalogService if you're able to get the context, isn't true?
Finally, I'd like to integrate one of this mass import on the admin, but I think this is the main point.

Thanks