Re: data import - product images

2018-02-23 Thread Rishi Solanki
Jesse, Assuming that you have a wrapper service which call resize images and data store service for each product. Lets say wrapperService() is your main service and inlineProductUpdateSerive() is the service which invoke in each iteration in wrapperService(). The inlineProductUpdateSerive() cakk

Re: data import - product images

2018-02-23 Thread gil portenseigne
Hello Jesse, You could manually manage your transactions within your service using : actualTransaction = TransactionUtil.suspend(); //suspend the current transaction TransactionUtil.begin(600); //Start a new one [...] if (ServiceUtil.isError(result)) {     TransactionUtil.rollback();

Re: data import - product images

2018-02-23 Thread Swapnil Mane
Hello Jesse, Solution to avoid transaction timeout is to schedule your job (service) https://demo-trunk.ofbiz.apache.org/webtools/control/scheduleJob - Best Regards, Swapnil M Mane On Fri, Feb 23, 2018 at 1:59 PM, Jesse Thomas wrote: > I have written a service

Re: data import - product images

2018-02-23 Thread Jesse Thomas
I have written a service that checks a folder for image files, resizes and updates the Product in OFBiz based on the file name equaling the productId. It works for a few hundred images, but when I process a few thousand images at the end it hits a transaction timeout. All the images are