Hi Rajini,

Then it is strange, that it is not called ...

Do you have some sample code you might share for a quick code review ?

Regards
Felix

On 6/27/07, Rajini Sivaram <[EMAIL PROTECTED]> wrote:

Felix,

I create a new instance of Felix each time. Once shutdown is called, the
instance of Felix and the system bundle context are not used again . A
framework listener is created for the system bundle context every time the
runtime is restarted, but it doesn't get invoked at all after the first
shutdown.


Thank you...

Regards,

Rajini

On 6/27/07, Felix Meschberger <[EMAIL PROTECTED]> wrote:
>
> Hi Rajini,
>
> How do you restart the framework ? Do you create the Felix instance anew
> for
> each framework start or do start-stop the same instance multiple times ?
>
> For better replicability and also in view of the changes that Richard is
> currently implementing, I suggest you do not reuse the Felix instances
but
> instead recreate a new instance for each start-stop cycle.
>
> Anyway, I assume, that you have to register the framework listener each
> time
> you start Felix.
>
> Hope this helps
>
> Regards
> Felix
>
> On 6/27/07, Rajini Sivaram <[EMAIL PROTECTED]> wrote:
> >
> > Hello,
> >
> > I have a set of JUnit tests which startup a Felix runtime in the setUp
> > method and shut the runtime down using Felix.shutdown(). The tests run
> > fine
> > when run one-by-one (single Felix runtime startup and shutdown in a
VM),
> > but
> > when run together (as a sequence of Felix runtime startup and shutdown
> > from
> > one VM), the framework listener is not called after the first
shutdown.
> > Apart from the framework listener, other operations dont run into any
> > problems with the restarting of the runtime, so I presume restarting
the
> > embedded runtime is not a problem.
> >
> > Is this something which will get fixed with the changes to the
embedded
> > APIs?
> >
> >
> > Thank you...
> >
> > Regards,
> >
> > Rajini
> >
>

Reply via email to