I know this is more of an application design question which I should probably figure for myself and not related to the framework per se, but I will throw it out anyway.
Our application has a functionality to allow the download of catalogs in ZIP format. These catalogs will have items that the user selected while browsing and added to their shopping cart. Now, what is common in these catalogs is the images, css etc that make up the 'chrome' and look & feel of the catalog.
What I want to do is use Spring to create the common ZIP file with all common stuff on server start-up and then clone this zip file for each user who wants to add items to their cloned ZIP for download. This will avoid everytime reading the files from the filesystem and creating the zip for every user that wants to download one or more items.
Does anyone see any issue using the bean factory to do this? How would you approach it?
Anyway, again I know it is not framework related so no need to respond. I'll delete the post if no response. Thank you.