Hello all,

   I'm facing a problem and would like to ask for some information.

   I have a bundle whose activator is registering a FrameworkListener
   inside the start() method. This bundle is set to start at level 3.

       frameworkListener = new FrameworkListener() {
                    public void frameworkEvent(FrameworkEvent event) {
                        if (event.getType() == FrameworkEvent.STARTED) {
                            try {
                                initiateProcess();
                            } catch (Exception e) {
                                logger.error("Failure occurred while
       executing "
                                        + "initial process.");
                            }
                        }
                    }
       pBundleContext.addFrameworkListener(frameworkListener);


   When executing that bundle with a OSGi Framework launcher then the
   unique event being captured is STARTLEVEL_CHANGED. I can't find a
   way to it to also receive a FrameworkEvent.STARTED.

   And I'm not also receiving the FrameworkEvent.STOP after type a
   close command and leave the session.

   Please, could someone explain me what am I missing here?

   thanks,

   Cristiano

_______________________________________________
equinox-dev mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/equinox-dev

Reply via email to