Hi Bram, It's a bad practice to depend on deployment (or start) order in OSGi. This means, most of the time, that service dynamics are not dealt with correctly. This will also cause problems when updating bundles, and because of that you should never rely on this. It might be difficult if it's framework code that causes these problems, but you should probably try to fix the root issue.
Cheers, Paul On May 29, 2013, at 20:06 , Bram Pouwelse <[email protected]> wrote: > Hi Marcel, Bram, > > @Marcel > Thanks for your quick and detailed reply. > > @Bram > I'll checkout the commandline tool and check of it can help me make things > easier. > > Today I've encountered a new problem to overcome first, ace deploys the > bundles in a random order and my JPA related bundles don't really like seem > to like that :( > > Regards, > Bram > > > > > > > 2013/5/29 Bram de Kruijff <[email protected]> > >> Hello Bram! :) >> >> On Tue, May 28, 2013 at 8:21 PM, Bram Pouwelse <[email protected]> wrote: >>> Hi, >>> >>> In the last few weeks we've started using ace for a project as an attempt >>> to simplify the deployment procedure for one of our applications. And it >>> certainly has the potential to do that! >>> But the last few days we're doing a lot of "snapshot" releases (remove >>> bundle -> store -> purge from repo -> add bundle -> store). >>> This does the job but isn't there an easier way to replace a bundle in >> the >>> repo? >> >> I have just dropped some code [0] in my sandbox that may interest you. >> It is a command line tool specifically to ease and automate these >> tasks. It is just a first version, but it already does the basics and >> works on my machine ;) I would love to get some attention and feedback >> on this. See the README [1] for a quick impression. >> >> >> Regards, >> your namesake >> >> [0] http://svn.apache.org/viewvc?view=revision&revision=r1487431 >> [1] >> http://svn.apache.org/viewvc/ace/sandbox/bramk/org.apache.ace.cli/README.md?view=markup&pathrev=1487431 >> >>> >>> Besides that in the past 2 days ace stopped updating the target. After >>> removing a bundle from the artifact list and a "store" the bundle is not >>> removed from the target. >>> >>> I've tried to fix this by: (no luck) >>> - Restarting the ace server >>> - Restarting the agent on the target >>> - Restarting the target (without clean) >>> - Restarting the target in a clean state (this resulted in a target >>> without bundles provisioned by ace) >>> >>> What did work was removing the contents from the bundle-cache folder, but >>> after removing I need to define features and distributions again. >>> >>> What would be the best way to find out why the target isn't updated >>> anymore? >>> >>> This was all using the server-allinone jar built from trunk 2 weeks ago, >>> today I've updated to the latest version. (then again I needed to remove >>> the bundle-cache and my config is gome). >>> >>> >>> Thanks for creating ace! >>> >>> Bram >>
