On Wed, Jul 13, 2011 at 12:03 PM, lili_ili <[email protected]> wrote:
> > Thank you, Richard. Can you recommend a java side solution? > I have an "installer" code that copies the fragment to the watched > directory. From there, I think to add a listener and after a fragment is > started redeploy its host. Is there a simpler solution? > I'm pretty sure this was some discussion on this exact topic not too long ago... At any rate, you could write a bundle that listens for bundles to be installed. It could (after perhaps a short delay) determine if that bundle was a fragment and if its matching host was already resolved. If so, it could then refresh and/or re-resolve the host, which would most likely result in the framework attaching the fragment. If the host is active, then refreshing it should be sufficient since it will automatically get re-started and re-resolved. -> richard > thanks again > > > Richard S. Hall wrote: > > > > If the host gets resolved first, then the fragment won't be able to > > attach to it since Felix doesn't support dynamic fragment attachment > > (and Equinox only supports it in a limited way). The most portable > > approach is to make sure the fragment is installed into the framework > > before the host is resolved. > > > > -> richard > > > > On 7/13/11 10:01, lili_ili wrote: > >> Hi > >> > >> I have a directory being watched by fileinstall. Fragment is copied to > >> this > >> directory after its host, and it automatically moves to "Installed" > >> state. > >> To make it "Resolved", I need to either run "resolve X" command, or > >> restart > >> the server. > >> Is there a way to solve it and resolve fragments located in "watched" > >> directories? > >> > >> thank you. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > > > -- > View this message in context: > http://old.nabble.com/Moving-fragment-to-Resolved-state-in-fileinstall-watched-directory--tp32052770p32054785.html > Sent from the Apache Felix - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >

