You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Joel Schuster <jo...@Navsys.com> on 2009/03/30 18:31:19 UTC

FileInstall Start/Stop

I can't seem to stop a bundle when it has been deployed by FileInstall...

When I stop an installed bundle via the text shell it becomes active again. Is this a bug? Or a works-as-designed?

______________________________
Joel Schuster
Senior Software Engineer
NAVSYS Corporation
14960 Woodcarver Road
Colorado Springs, CO 80921
(719) 481-4877 x138
joels@navsys.com<ma...@navsys.com>

The information contained herein is confidential and intended solely for the use of the addressees. If the reader is not the intended recipient, you are hereby notified that any distribution or copying of this communication is prohibited. Further distribution without the sender's approval is also prohibited.  If you have received this communication in error, please notify us immediately by replying to the message and deleting it entirely from your computer. Thank you. NAVSYS Corporation.


Re: FileInstall Start/Stop

Posted by Peter Kriens <pe...@aqute.biz>.
You're right ... the idea of File Install is that the directory  
reflects the running bundles. File Install tries very hard to make  
that true. So your management is by adding/removing bundles from the  
folder.

However, not everybody is happy with that so there will be a change to  
make it configurable ...

Kind regards,

	Peter Kriens

On 30 mrt 2009, at 18:43, Dan J Hrivnak wrote:

> That is working as designed.  You are stopping it using the shell,  
> but the bundle file is still in your FileInstall directory right?   
> So FileInstall will see it, see that it isn't started, and will  
> start it for you.  If you really want to stop/uninstall it you  
> probably have to remove it from the FileInstall directory.
>
> But I might be wrong... <ma...@Raytheon.com>
>
>
> Joel Schuster wrote:
>> I can't seem to stop a bundle when it has been deployed by  
>> FileInstall...
>>
>> When I stop an installed bundle via the text shell it becomes  
>> active again. Is this a bug? Or a works-as-designed?
>>
>> ______________________________
>> Joel Schuster
>> Senior Software Engineer
>> NAVSYS Corporation
>> 14960 Woodcarver Road
>> Colorado Springs, CO 80921
>> (719) 481-4877 x138
>> joels@navsys.com<ma...@navsys.com>
>>
>> The information contained herein is confidential and intended  
>> solely for the use of the addressees. If the reader is not the  
>> intended recipient, you are hereby notified that any distribution  
>> or copying of this communication is prohibited. Further  
>> distribution without the sender's approval is also prohibited.  If  
>> you have received this communication in error, please notify us  
>> immediately by replying to the message and deleting it entirely  
>> from your computer. Thank you. NAVSYS Corporation.
>>
>>
>>


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


Re: FileInstall Start/Stop

Posted by Dan J Hrivnak <da...@raytheon.com>.
That is working as designed.  You are stopping it using the shell, but 
the bundle file is still in your FileInstall directory right?  So 
FileInstall will see it, see that it isn't started, and will start it 
for you.  If you really want to stop/uninstall it you probably have to 
remove it from the FileInstall directory.

But I might be wrong... <ma...@Raytheon.com>


Joel Schuster wrote:
> I can't seem to stop a bundle when it has been deployed by FileInstall...
>
> When I stop an installed bundle via the text shell it becomes active again. Is this a bug? Or a works-as-designed?
>
> ______________________________
> Joel Schuster
> Senior Software Engineer
> NAVSYS Corporation
> 14960 Woodcarver Road
> Colorado Springs, CO 80921
> (719) 481-4877 x138
> joels@navsys.com<ma...@navsys.com>
>
> The information contained herein is confidential and intended solely for the use of the addressees. If the reader is not the intended recipient, you are hereby notified that any distribution or copying of this communication is prohibited. Further distribution without the sender's approval is also prohibited.  If you have received this communication in error, please notify us immediately by replying to the message and deleting it entirely from your computer. Thank you. NAVSYS Corporation.
>
>
>   

Re: FileInstall Start/Stop

Posted by Guillaume Nodet <gn...@gmail.com>.
No, they have very compatible goals.
The ServiceMix implementation was derived from the filemonitor written
by Peter Kriens, but it has since evolved and provides much more
features (custom artifact support, exploded bundles support, etc..).
I'll try to investigate the best way to bring both in sync.

On Tue, Mar 31, 2009 at 11:32, Karl Pauls <ka...@gmail.com> wrote:
> Interesting. Is there a way we can merge the two into one subproject
> at felix or do they have different goals that are incompatible?
>
> regards,
>
> Karl
>
> On Tue, Mar 31, 2009 at 11:22 AM, Guillaume Nodet <gn...@gmail.com> wrote:
>> You can also give a try to the one from ServiceMix Kernel which does
>> not have this behavior.
>> It will start the bundle the first time, but won't touch it again if
>> you manually stop the bundle.
>>
>>  https://svn.apache.org/repos/asf/servicemix/smx4/kernel/trunk/filemonitor/
>> Released jar is available at:
>>   http://repo1.maven.org/maven2/org/apache/servicemix/kernel/org.apache.servicemix.kernel.filemonitor/1.1.0/org.apache.servicemix.kernel.filemonitor-1.1.0.jar
>>
>> On Mon, Mar 30, 2009 at 19:02, Joel Schuster <jo...@navsys.com> wrote:
>>> Thanks all. That helps clarify.
>>>
>>>> -----Original Message-----
>>>> From: Stuart McCulloch [mailto:mcculls@gmail.com]
>>>> Sent: Monday, March 30, 2009 10:55 AM
>>>> To: users@felix.apache.org
>>>> Subject: Re: FileInstall Start/Stop
>>>>
>>>> 2009/3/30 Joel Schuster <jo...@navsys.com>
>>>>
>>>> > I can't seem to stop a bundle when it has been deployed by
>>>> FileInstall...
>>>> >
>>>> > When I stop an installed bundle via the text shell it becomes active
>>>> again.
>>>> > Is this a bug? Or a works-as-designed?
>>>> >
>>>>
>>>> currently you have to remove a bundle from the directory to stop it
>>>> - this way the directory reflects the current set of started bundles
>>>>
>>>> however, a number of patches have recently gone in which make
>>>> this behaviour configurable, so you can manually stop bundles:
>>>>
>>>>    http://issues.apache.org/jira/browse/FELIX-938
>>>>    http://issues.apache.org/jira/browse/FELIX-920
>>>>
>>>> ( full list:
>>>> http://issues.apache.org/jira/secure/IssueNavigator.jspa?pid=12310100&fixf
>>>> or=12313647)
>>>>
>>>> these will be available in the next release (0.9.2) which should be
>>>> prepared and voted on shortly - otherwise you can compile from
>>>> trunk or use the latest snapshot:
>>>>
>>>>
>>>> http://people.apache.org/repo/m2-snapshot-
>>>> repository/org/apache/felix/org.apache.felix.fileinstall/0.9.1-SNAPSHOT
>>>>
>>>> HTH
>>>>
>>>>
>>>> > ______________________________
>>>> > Joel Schuster
>>>> > Senior Software Engineer
>>>> > NAVSYS Corporation
>>>> > 14960 Woodcarver Road
>>>> > Colorado Springs, CO 80921
>>>> > (719) 481-4877 x138
>>>> > joels@navsys.com<ma...@navsys.com>
>>>> >
>>>> > The information contained herein is confidential and intended solely for
>>>> > the use of the addressees. If the reader is not the intended recipient,
>>>> you
>>>> > are hereby notified that any distribution or copying of this
>>>> communication
>>>> > is prohibited. Further distribution without the sender's approval is
>>>> also
>>>> > prohibited.  If you have received this communication in error, please
>>>> notify
>>>> > us immediately by replying to the message and deleting it entirely from
>>>> your
>>>> > computer. Thank you. NAVSYS Corporation.
>>>> >
>>>> >
>>>>
>>>>
>>>> --
>>>> Cheers, Stuart
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>> For additional commands, e-mail: users-help@felix.apache.org
>>>
>>>
>>
>>
>>
>> --
>> Cheers,
>> Guillaume Nodet
>> ------------------------
>> Blog: http://gnodet.blogspot.com/
>> ------------------------
>> Open Source SOA
>> http://fusesource.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>>
>
>
>
> --
> Karl Pauls
> karlpauls@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

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


Re: FileInstall Start/Stop

Posted by Karl Pauls <ka...@gmail.com>.
Interesting. Is there a way we can merge the two into one subproject
at felix or do they have different goals that are incompatible?

regards,

Karl

On Tue, Mar 31, 2009 at 11:22 AM, Guillaume Nodet <gn...@gmail.com> wrote:
> You can also give a try to the one from ServiceMix Kernel which does
> not have this behavior.
> It will start the bundle the first time, but won't touch it again if
> you manually stop the bundle.
>
>  https://svn.apache.org/repos/asf/servicemix/smx4/kernel/trunk/filemonitor/
> Released jar is available at:
>   http://repo1.maven.org/maven2/org/apache/servicemix/kernel/org.apache.servicemix.kernel.filemonitor/1.1.0/org.apache.servicemix.kernel.filemonitor-1.1.0.jar
>
> On Mon, Mar 30, 2009 at 19:02, Joel Schuster <jo...@navsys.com> wrote:
>> Thanks all. That helps clarify.
>>
>>> -----Original Message-----
>>> From: Stuart McCulloch [mailto:mcculls@gmail.com]
>>> Sent: Monday, March 30, 2009 10:55 AM
>>> To: users@felix.apache.org
>>> Subject: Re: FileInstall Start/Stop
>>>
>>> 2009/3/30 Joel Schuster <jo...@navsys.com>
>>>
>>> > I can't seem to stop a bundle when it has been deployed by
>>> FileInstall...
>>> >
>>> > When I stop an installed bundle via the text shell it becomes active
>>> again.
>>> > Is this a bug? Or a works-as-designed?
>>> >
>>>
>>> currently you have to remove a bundle from the directory to stop it
>>> - this way the directory reflects the current set of started bundles
>>>
>>> however, a number of patches have recently gone in which make
>>> this behaviour configurable, so you can manually stop bundles:
>>>
>>>    http://issues.apache.org/jira/browse/FELIX-938
>>>    http://issues.apache.org/jira/browse/FELIX-920
>>>
>>> ( full list:
>>> http://issues.apache.org/jira/secure/IssueNavigator.jspa?pid=12310100&fixf
>>> or=12313647)
>>>
>>> these will be available in the next release (0.9.2) which should be
>>> prepared and voted on shortly - otherwise you can compile from
>>> trunk or use the latest snapshot:
>>>
>>>
>>> http://people.apache.org/repo/m2-snapshot-
>>> repository/org/apache/felix/org.apache.felix.fileinstall/0.9.1-SNAPSHOT
>>>
>>> HTH
>>>
>>>
>>> > ______________________________
>>> > Joel Schuster
>>> > Senior Software Engineer
>>> > NAVSYS Corporation
>>> > 14960 Woodcarver Road
>>> > Colorado Springs, CO 80921
>>> > (719) 481-4877 x138
>>> > joels@navsys.com<ma...@navsys.com>
>>> >
>>> > The information contained herein is confidential and intended solely for
>>> > the use of the addressees. If the reader is not the intended recipient,
>>> you
>>> > are hereby notified that any distribution or copying of this
>>> communication
>>> > is prohibited. Further distribution without the sender's approval is
>>> also
>>> > prohibited.  If you have received this communication in error, please
>>> notify
>>> > us immediately by replying to the message and deleting it entirely from
>>> your
>>> > computer. Thank you. NAVSYS Corporation.
>>> >
>>> >
>>>
>>>
>>> --
>>> Cheers, Stuart
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>>
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>



-- 
Karl Pauls
karlpauls@gmail.com

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


Re: FileInstall Start/Stop

Posted by Guillaume Nodet <gn...@gmail.com>.
You can also give a try to the one from ServiceMix Kernel which does
not have this behavior.
It will start the bundle the first time, but won't touch it again if
you manually stop the bundle.

  https://svn.apache.org/repos/asf/servicemix/smx4/kernel/trunk/filemonitor/
Released jar is available at:
   http://repo1.maven.org/maven2/org/apache/servicemix/kernel/org.apache.servicemix.kernel.filemonitor/1.1.0/org.apache.servicemix.kernel.filemonitor-1.1.0.jar

On Mon, Mar 30, 2009 at 19:02, Joel Schuster <jo...@navsys.com> wrote:
> Thanks all. That helps clarify.
>
>> -----Original Message-----
>> From: Stuart McCulloch [mailto:mcculls@gmail.com]
>> Sent: Monday, March 30, 2009 10:55 AM
>> To: users@felix.apache.org
>> Subject: Re: FileInstall Start/Stop
>>
>> 2009/3/30 Joel Schuster <jo...@navsys.com>
>>
>> > I can't seem to stop a bundle when it has been deployed by
>> FileInstall...
>> >
>> > When I stop an installed bundle via the text shell it becomes active
>> again.
>> > Is this a bug? Or a works-as-designed?
>> >
>>
>> currently you have to remove a bundle from the directory to stop it
>> - this way the directory reflects the current set of started bundles
>>
>> however, a number of patches have recently gone in which make
>> this behaviour configurable, so you can manually stop bundles:
>>
>>    http://issues.apache.org/jira/browse/FELIX-938
>>    http://issues.apache.org/jira/browse/FELIX-920
>>
>> ( full list:
>> http://issues.apache.org/jira/secure/IssueNavigator.jspa?pid=12310100&fixf
>> or=12313647)
>>
>> these will be available in the next release (0.9.2) which should be
>> prepared and voted on shortly - otherwise you can compile from
>> trunk or use the latest snapshot:
>>
>>
>> http://people.apache.org/repo/m2-snapshot-
>> repository/org/apache/felix/org.apache.felix.fileinstall/0.9.1-SNAPSHOT
>>
>> HTH
>>
>>
>> > ______________________________
>> > Joel Schuster
>> > Senior Software Engineer
>> > NAVSYS Corporation
>> > 14960 Woodcarver Road
>> > Colorado Springs, CO 80921
>> > (719) 481-4877 x138
>> > joels@navsys.com<ma...@navsys.com>
>> >
>> > The information contained herein is confidential and intended solely for
>> > the use of the addressees. If the reader is not the intended recipient,
>> you
>> > are hereby notified that any distribution or copying of this
>> communication
>> > is prohibited. Further distribution without the sender's approval is
>> also
>> > prohibited.  If you have received this communication in error, please
>> notify
>> > us immediately by replying to the message and deleting it entirely from
>> your
>> > computer. Thank you. NAVSYS Corporation.
>> >
>> >
>>
>>
>> --
>> Cheers, Stuart
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

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


RE: FileInstall Start/Stop

Posted by Joel Schuster <jo...@Navsys.com>.
Thanks all. That helps clarify.

> -----Original Message-----
> From: Stuart McCulloch [mailto:mcculls@gmail.com]
> Sent: Monday, March 30, 2009 10:55 AM
> To: users@felix.apache.org
> Subject: Re: FileInstall Start/Stop
> 
> 2009/3/30 Joel Schuster <jo...@navsys.com>
> 
> > I can't seem to stop a bundle when it has been deployed by
> FileInstall...
> >
> > When I stop an installed bundle via the text shell it becomes active
> again.
> > Is this a bug? Or a works-as-designed?
> >
> 
> currently you have to remove a bundle from the directory to stop it
> - this way the directory reflects the current set of started bundles
> 
> however, a number of patches have recently gone in which make
> this behaviour configurable, so you can manually stop bundles:
> 
>    http://issues.apache.org/jira/browse/FELIX-938
>    http://issues.apache.org/jira/browse/FELIX-920
> 
> ( full list:
> http://issues.apache.org/jira/secure/IssueNavigator.jspa?pid=12310100&fixf
> or=12313647)
> 
> these will be available in the next release (0.9.2) which should be
> prepared and voted on shortly - otherwise you can compile from
> trunk or use the latest snapshot:
> 
> 
> http://people.apache.org/repo/m2-snapshot-
> repository/org/apache/felix/org.apache.felix.fileinstall/0.9.1-SNAPSHOT
> 
> HTH
> 
> 
> > ______________________________
> > Joel Schuster
> > Senior Software Engineer
> > NAVSYS Corporation
> > 14960 Woodcarver Road
> > Colorado Springs, CO 80921
> > (719) 481-4877 x138
> > joels@navsys.com<ma...@navsys.com>
> >
> > The information contained herein is confidential and intended solely for
> > the use of the addressees. If the reader is not the intended recipient,
> you
> > are hereby notified that any distribution or copying of this
> communication
> > is prohibited. Further distribution without the sender's approval is
> also
> > prohibited.  If you have received this communication in error, please
> notify
> > us immediately by replying to the message and deleting it entirely from
> your
> > computer. Thank you. NAVSYS Corporation.
> >
> >
> 
> 
> --
> Cheers, Stuart

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


Re: FileInstall Start/Stop

Posted by Stuart McCulloch <mc...@gmail.com>.
2009/3/30 Joel Schuster <jo...@navsys.com>

> I can't seem to stop a bundle when it has been deployed by FileInstall...
>
> When I stop an installed bundle via the text shell it becomes active again.
> Is this a bug? Or a works-as-designed?
>

currently you have to remove a bundle from the directory to stop it
- this way the directory reflects the current set of started bundles

however, a number of patches have recently gone in which make
this behaviour configurable, so you can manually stop bundles:

   http://issues.apache.org/jira/browse/FELIX-938
   http://issues.apache.org/jira/browse/FELIX-920

( full list:
http://issues.apache.org/jira/secure/IssueNavigator.jspa?pid=12310100&fixfor=12313647)

these will be available in the next release (0.9.2) which should be
prepared and voted on shortly - otherwise you can compile from
trunk or use the latest snapshot:


http://people.apache.org/repo/m2-snapshot-repository/org/apache/felix/org.apache.felix.fileinstall/0.9.1-SNAPSHOT

HTH


> ______________________________
> Joel Schuster
> Senior Software Engineer
> NAVSYS Corporation
> 14960 Woodcarver Road
> Colorado Springs, CO 80921
> (719) 481-4877 x138
> joels@navsys.com<ma...@navsys.com>
>
> The information contained herein is confidential and intended solely for
> the use of the addressees. If the reader is not the intended recipient, you
> are hereby notified that any distribution or copying of this communication
> is prohibited. Further distribution without the sender's approval is also
> prohibited.  If you have received this communication in error, please notify
> us immediately by replying to the message and deleting it entirely from your
> computer. Thank you. NAVSYS Corporation.
>
>


-- 
Cheers, Stuart

Re: FileInstall Start/Stop

Posted by Clement Escoffier <cl...@gmail.com>.
On 30.03.2009, at 18:31, Joel Schuster wrote:

> I can't seem to stop a bundle when it has been deployed by  
> FileInstall...
>
> When I stop an installed bundle via the text shell it becomes active  
> again. Is this a bug? Or a works-as-designed?

Right. In the current release of file install, it restarts  
automatically stopped bundles... Same things when you stop the  
framework. Stopping the system bundle (which means stopping the  
framework), stops all the others bundles. However, until file install  
bundle is stopped, file install restarts stopped bundles, and so  
leaves your cache in a inconsistent state.

So, the good news is that these issues were addressed and fixed. So,  
next release will avoid this behavior.

Regards,

Clement


>
>
> ______________________________
> Joel Schuster
> Senior Software Engineer
> NAVSYS Corporation
> 14960 Woodcarver Road
> Colorado Springs, CO 80921
> (719) 481-4877 x138
> joels@navsys.com<ma...@navsys.com>
>
> The information contained herein is confidential and intended solely  
> for the use of the addressees. If the reader is not the intended  
> recipient, you are hereby notified that any distribution or copying  
> of this communication is prohibited. Further distribution without  
> the sender's approval is also prohibited.  If you have received this  
> communication in error, please notify us immediately by replying to  
> the message and deleting it entirely from your computer. Thank you.  
> NAVSYS Corporation.
>


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