felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Edelson <jus...@justinedelson.com>
Subject Re: Moving fragment to Resolved state in fileinstall watched directory?
Date Wed, 13 Jul 2011 16:16:14 GMT
Is code running inside the framework? If so, why not just install the bundle directly (and
the refresh the host bundle) rather than mucking with FileInstall.

Justin

On Jul 13, 2011, at 12:03 PM, lili_ili <svetloe@gmail.com> 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?
> 
> 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: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>> 
>> 
>> 
> 
> -- 
> 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: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Mime
View raw message