Re: Issues when updating running apps?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everyone,

I apologize for insisting on this matter, but so far I haven't been able to find info on this anywhere. I've looked at tomcat's and openoffice's spec files as examples of packaged java apps, but it doesn't seem they take any sort of precaution when updating. Is it really not an issue if the app happens to be running at the time?

As for updating a database schema accessed by our app, I suppose we could add that logic to the app itself and have it check before it starts whether it should modify the database, but I find adding scripts in the RPM much easier and I'd prefer any problems with the modifications to come up the moment the update is applied and not whenever the app is next started.

I'd really appreciate any comments you could give me on this, whether they are direct answers, indirect tips on how I could find this info, or kind advice to go RTFM (as long as you tell me which FM in particular that would be :) )

I thank you all already for your time.

Regards.

Adrián.

Adrián Márques escribió:
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 while it's running won't cause any problems. For instance, I'm packaging a quite typical java app that has a swing GUI and stores its data in a database. In the event of an update requiring modifications to the database schema I had thought of including these in the %pre or %post sections, but I assume this could lead to the app breaking to pieces if the old version is running when the changes meant for the newer version are made. A similar problem could occur if I update some jar and the running app happens to load some classes from it that won't work properly with the older version. Am I making any sense with this?

How can I get around these issues? are there other I should look out for that I'm not considering?

I'd highly appreciate any advice/tips/links you could give me.

Regards.

Adrián.




_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux