Re: Issues when updating running apps?
Adrián Márques <[email protected]> Tue, 30 Sep 2008 17:00:51 -0300
| Newsgroups | gmane.linux.redhat.rpm.general |
|---|---|
| Message-ID | <[email protected]> |
Hi everyone, I apologize for insisting on this matter, but so far I haven't been able=20 to find info on this anywhere. I've looked at tomcat's and openoffice's=20 spec files as examples of packaged java apps, but it doesn't seem they=20 take any sort of precaution when updating. Is it really not an issue if=20 the app happens to be running at the time? As for updating a database schema accessed by our app, I suppose we=20 could add that logic to the app itself and have it check before it=20 starts whether it should modify the database, but I find adding scripts=20 in the RPM much easier and I'd prefer any problems with the=20 modifications to come up the moment the update is applied and not=20 whenever the app is next started. I'd really appreciate any comments you could give me on this, whether=20 they are direct answers, indirect tips on how I could find this info, or=20 kind advice to go RTFM (as long as you tell me which FM in particular=20 that would be :) ) I thank you all already for your time. Regards. Adri=E1n. Adri=E1n M=E1rques escribi=F3: > Hello all, > > I have a very basic question I hope someone can help me with. > > I'm not sure on how to package an application so that updating it=20 > while it's running won't cause any problems. For instance, I'm=20 > packaging a quite typical java app that has a swing GUI and stores its=20 > data in a database. In the event of an update requiring modifications=20 > to the database schema I had thought of including these in the %pre or=20 > %post sections, but I assume this could lead to the app breaking to=20 > pieces if the old version is running when the changes meant for the=20 > newer version are made. A similar problem could occur if I update some=20 > jar and the running app happens to load some classes from it that=20 > won't work properly with the older version. Am I making any sense with=20 > this? > > How can I get around these issues? are there other I should look out=20 > for that I'm not considering? > > I'd highly appreciate any advice/tips/links you could give me. > > Regards. > > Adri=E1n. > > >