I would like to have some advice on the following problem
- I would like to build reusable components, that I could plugin into new projects. What approach should I take and how do I accomplish this using eclipse, ant, ... I guess I need a shared library somewhere because holding jar files on a componet base is just duplicating the jars. So has anyone have any experience in putting those jars / build files in a central repository (and if so dou you use ant or maven ....)?
- When deploying them on a server I don't won't each war/ear to hold the component so I just want that I deploy my component on the server so that all my app can make use of them. Is there a good way to deploy, let's call it services, I read for example in Weblogic you have something like that?
- When creating Spring app ctx files, should each component hold the possible configuration the component can have or belong these cfg files in the project itself and by that keeping the module more abstract
- I have a development, a test and a production environment, each having different database and other settings. These settings I have put into properties files and depending on which env I am in, i take the correct cfg file. Is this the correct way of working or are there better ways to switch cfg between test, dev and prod? I guess I should also think of migrating to jmx because for now the props file cannot be reloaded at runtime (don't think this is possible in Spring?)
- Not Spring related: I have also a dev, test and prod database env (and that for each product), But I'm having difficulties of keeping them synchronised when i change something i have to change all of thme. Perhaps some people can share their thoughts on how one should keep different databases, tools vs manual sql update files???
I would be great to hear advice from people who use Spring in large applications that share common components. If you like to share other issues that come along with using reusable components, please feel free to do so
Grtz
M



Reply With Quote