Return-Path: X-Original-To: apmail-felix-users-archive@minotaur.apache.org Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8737E6748 for ; Wed, 13 Jul 2011 20:11:54 +0000 (UTC) Received: (qmail 97363 invoked by uid 500); 13 Jul 2011 20:11:54 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 97302 invoked by uid 500); 13 Jul 2011 20:11:53 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 97294 invoked by uid 99); 13 Jul 2011 20:11:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jul 2011 20:11:53 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bcanhome@googlemail.com designates 209.85.161.43 as permitted sender) Received: from [209.85.161.43] (HELO mail-fx0-f43.google.com) (209.85.161.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jul 2011 20:11:47 +0000 Received: by fxg17 with SMTP id 17so5346573fxg.30 for ; Wed, 13 Jul 2011 13:11:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=qqi3Dxq+ulM9UCjiomS36VARKibU3AUyC0geB3V1yAc=; b=r2DaJYGs5iO6AXN+j0SWNOsEaVmhJ4G104EFlWLJOCU4TY0ILMnuterJ4f1hRlYhc4 MQOmF1gOIbmvzInQD9otrU5qOFsiH+zPsEWQ8HybR6/UUsrrqwAHS+w6j4tmHNzt/dMG 8cAJHJeZm7e5sjFTAyCXGOCoeylvoF8WXFuMc= Received: by 10.223.145.9 with SMTP id b9mr2226976fav.144.1310587881829; Wed, 13 Jul 2011 13:11:21 -0700 (PDT) Received: from [192.168.1.50] (dslb-088-066-134-111.pools.arcor-ip.net [88.66.134.111]) by mx.google.com with ESMTPS id b3sm10711931fao.20.2011.07.13.13.11.20 (version=SSLv3 cipher=OTHER); Wed, 13 Jul 2011 13:11:20 -0700 (PDT) Message-ID: <4E1DFBE3.9040804@googlemail.com> Date: Wed, 13 Jul 2011 22:11:15 +0200 From: Achim Nierbeck User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11 MIME-Version: 1.0 To: users@felix.apache.org Subject: Re: Moving fragment to Resolved state in fileinstall watched directory? References: <32052770.post@talk.nabble.com> <4E1DAFF5.9080309@ungoverned.org> <32054785.post@talk.nabble.com> In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I might be naive, but I think this would be a great feature for felix. Often this is a real downside for using fragments that they don't get attached because the host bundle is already started, so you start tuning with startlevels which for me is just a bad workaround. Would this be a possible enhancement for felix? regards, Achim Am 13.07.2011 18:30, schrieb Richard Hall: > On Wed, Jul 13, 2011 at 12:03 PM, lili_ili 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: 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 >> >> -- ----- Apache Karaf Committer & PMC OPS4J Pax Web Committer & Project Lead --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org