Great, thx a lot !  If you ever come up with a patch, that would be
awesome ! :-)

On Thu, May 22, 2008 at 2:31 PM, Ivan Stojic <[EMAIL PROTECTED]> wrote:
>
> Issue raised:
>
> https://issues.apache.org/activemq/browse/SMX4KNL-44
>
>
> Thanks,
> Ivan
>
>
>
> Gert Vanthienen wrote:
>>
>> Ivan,
>>
>> I can't imagine that being the intended behavior so feel free to raise a
>> JIRA for this
>>
>> Gert
>>
>>
>>
>> Ivan Stojic wrote:
>>> Hi,
>>>
>>> I'm testing the hot (re)deployment feature of the ServiceMix 4 Kernel. I
>>> created an OSGi bundle with a simple BundleActivator which only prints
>>> out
>>> when start/stop methods are called. When I copy the bundle to the deploy
>>> dir, the start message is printed and everything works fine.
>>>
>>> But, when I copy the bundle again (overwriting the old one) or when I
>>> simply
>>> 'touch' the old one in the deploy dir, I noticed that it is being stopped
>>> and started twice in a row.
>>>
>>> I traced the problem to the
>>> FileMonitor.refreshPackagesAndStartOrUpdateBundles() method, where my
>>> bundle
>>> is first being refreshed via packageAdmin.refreshPackages(bundles)
>>> (probably
>>> causing the first stop/start of the bundle) and, right after that, the
>>> same
>>> bundle is being updated via bundle.update() (causing the second
>>> stop/start).
>>>
>>> Is this the intended behavior or some kind of a bug?
>>>
>>> Thanks,
>>> Ivan
>>>
>>
>>
>>
>> -----
>> ---
>> Gert Vanthienen
>> http://www.anova.be
>>
>
> --
> View this message in context: 
> http://www.nabble.com/smx4-kernel---changed-bundles-restarted-twice-tp17401021p17403257.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Reply via email to