I’ve got a (maybe simple) question.
I’ve created a osgi bundle using Spring and Hibernate. It is very uncomfortable to edit the hibernate.cfg.xml and the beans.xml on every computer so that the service will work (e.g. ip adress for the database, ports etc.) – so I want to swap it to one properties file which can be easy edited without rebuild the complete service from source.
But i don’t know how to do this?
You can use a PropertyPlaceholderConfigurer to lay out the configuration. This allows you to specify the database configuration as system properties when you start the OSGi framework.