Hello,
I apologize if this is something basic that's in the doc or forum, but I've there just seem to be so many options and my small attempts at each have ended in failure.
Basically what I have is a large, 'complicated' Spring web application context that works wonderfully. I now have a requirement where I want to configure beans with SQL & HQL queries. These beans can be considered separate from my main Spring app context in that they have little or no dependencies on those other beans.
The problem I have is that, during development, I'm constantly changing these queries as I try different things, troubleshoot, etc. Right now, I have to restart the whole web app for any changes in a query to be used.
I've tried various methods of putting these query beans in their own context so that I could just refresh() that one context each time I made a change. I just can't seem to get it to work. It'll either refresh all my other contexts as well, or refresh nothing at all, etc. etc.
Without going through everything I've tried, I'm wondering if someone could just point me toward the right general strategy so I can focus on making one work.
In short, I currently have a single web application context. Everything is in there and working good. I'd like to pull out my query beans into their own context so that I can refresh my changes to that at will without affecting/refreshing the rest of the app. This one does not need to be a web context.
Could someone please point me in the right direction?
Thanks!


Reply With Quote