Albert Strasheim | 2 Jul 05:17
Picon

Equinox, OBR and all that

Hello all

I'm trying to put together a basic system on top of Equinox that can 
install/update and activate bundles automatically.

I have something along the following lines in mind:

1. Equinox starts up.

2. My "install/update stuff" bundle is activated.

3. It figures out if there are any bundles to install.

3.1. It could poll a web server for a list of bundles.
3.2. It could install all the bundles available in an OBR.

4. Periodically, it can poll again, or be notified of new bundles by 
listening on a JMS topic or something along these lines.

Now, some questions:

1. Does a system like this exist already?

2. Does Equinox have an OBR service implementation? As far as I can 
tell, Apache Felix does. Should I be able to get their bundle going in 
Equinox?

3. If I can use the Apache Felix bundle, is there some process by which 
I can integrate it into Equinox so that it shows up in all the various 
Run configuration lists, etc. (i.e. make it easy to use from inside 
(Continue reading)

Pascal Rapicault | 2 Jul 16:28
Picon

Re: Equinox, OBR and all that

See answer embedded ">>>"
HTH

PaScaL

                                                                           
             Albert Strasheim                                              
             <fullung@...                                             
             m>                                                         To 
             Sent by:                  equinox-dev@...             
             equinox-dev-bounc                                          cc 
             es@...                                                
                                                                   Subject 
                                       [equinox-dev] Equinox, OBR and all  
             07/01/2007 11:17          that                                
             PM                                                            

                                                                           
             Please respond to                                             
                  Equinox                                                  
                development                                                
               mailing list                                                
             <equinox-dev <at> ecli                                             
                 pse.org>                                                  

Hello all

I'm trying to put together a basic system on top of Equinox that can
install/update and activate bundles automatically.

(Continue reading)

Jeremy Volkman | 2 Jul 19:14
Picon

Re: Equinox, OBR and all that

Albert,

This pretty much describes the system we use internally for starting
our OSGi-based server.  The one and only bundle installed along side
org.eclipse.osgi is responsible for:

1. Communicating with one or more repositories (of which are
extensible through the service layer);
2. Searching for and retrieving a "deployment set", which is a list of
bundles, valid version ranges for those bundles, and whether or not
they should be started;
3. Performing necessary tasks to get the state of the current system
to that described in the deployment set;
4. Register a Java Shutdown Hook that initiates a shutdown procedure
when the JVM is sent a SIGTERM.

The bundle compares the running state of the OSGi system to that
described in a deployment set.  From that comparison it can compute a
list of steps required to perform the update, and optionally execute
the steps.  Initial startup of the system basically compares the
deployment set to an empty OSGi system and therefore installs and
starts all necessary bundles.

We don't (yet) integrate with OBR.  My understanding of OBR is that a
large part of its functionality is in the dependency resolution
system, which figures out that if you want to install bundle X, you
first need bundle A, B and C.  We choose to leave this as a
configuration-time task, and validate a particular deployment set
before using it to start and/or update a system.

(Continue reading)

ChangWoo Jung | 3 Jul 08:15
Picon

Re: Equinox, OBR and all that


Albert,

I put the OBR Eclipse tooling feature at the public site.
http://changwoojung.blogspot.com/2007/07/obr-tooling-feature-on-eclipse-33.html
Please give it a try and let me know if you encounter any problem.

Sincerely,
ChangWoo "Jason" Jung




From: Pascal Rapicault <Pascal_Rapicault-G1DYhSM1WHTQT0dZR+AlfA@public.gmane.org>
To: Equinox development mailing list <equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org>
Cc: equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org, equinox-dev-bounces-j9T/66MeVpFAfugRpC6u6w@public.gmane.org
Date: 07/02/2007 11:34 PM
Subject: Re: [equinox-dev] Equinox, OBR and all that




See answer embedded ">>>"
HTH

PaScaL


                                                                         
            Albert Strasheim                                              
            <fullung-Re5JQEeQqe8@public.gmane.org                                            
            m>                                                         To
            Sent by:                  equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org            
            equinox-dev-bounc                                          cc
            es-j9T/66MeVpFAfugRpC6u6w@public.gmane.org                                                
                                                                  Subject
                                      [equinox-dev] Equinox, OBR and all  
            07/01/2007 11:17          that                                
            PM                                                            
                                                                         
                                                                         
            Please respond to                                            
                 Equinox                                                  
               development                                                
              mailing list                                                
            <equinox-dev <at> ecli                                            
                pse.org>                                                  
                                                                         
                                                                         




Hello all

I'm trying to put together a basic system on top of Equinox that can
install/update and activate bundles automatically.

I have something along the following lines in mind:

1. Equinox starts up.

2. My "install/update stuff" bundle is activated.

3. It figures out if there are any bundles to install.

3.1. It could poll a web server for a list of bundles.
3.2. It could install all the bundles available in an OBR.

4. Periodically, it can poll again, or be notified of new bundles by
listening on a JMS topic or something along these lines.

Now, some questions:

1. Does a system like this exist already?
>>> The provisioning work contains pieces for a solution but not a complete
solution. For example we have a bundle called
org.eclipse.equinox.simpleconfigurator that reads a list of bundles to
install/start from a URL and apply it in a running system.
A mechanism to remotely trigger the reading of the file could be added on
top of this.
The code can be found in the main eclipse repository (dev.eclipse.org
/cvsroot/eclipse) under
equinox-incubator/provisioning/org.eclipse.equinox.simpleconfigurator

2. Does Equinox have an OBR service implementation? As far as I can
tell, Apache Felix does. Should I be able to get their bundle going in
Equinox?
>>> Equinox does not have an implementation of OBR. However the felix
implementation should work.

3. If I can use the Apache Felix bundle, is there some process by which
I can integrate it into Equinox so that it shows up in all the various
Run configuration lists, etc. (i.e. make it easy to use from inside
Eclipse)? Maybe I could just create a plugin project on top op the
Felix OBR sources.
>>> OBR is a bundle. Once you will have it loaded in your workspace or if
it is available in your target environment, it will appear in the launch
configuration

4. Is all the fancy stuff I saw in this EclipseCon presentation
available in Eclipse 3.3? If not, how can I get it? :-)

Integrating OSGi Bundle Repository (OBR) inside Eclipse for Bundle
Deployment
http://www.eclipsecon.org/2007/index.php?page=sub/&id=4045

4. Any other thoughts on tackling this kind of problem?

Thanks for your time.

Regards,

Albert
_______________________________________________
equinox-dev mailing list
equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


_______________________________________________
equinox-dev mailing list
equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev

Yu Zhong Cao | 4 Jul 03:03
Picon
Favicon

How to automatically discover and start bundles?


By setting the osgi.bundles in config.ini to "org.eclipse.equinox.common <at> 2:start, org.eclipse.update.configurator <at> 3:start"
will give "Automatic bundle discovery/Install" for the bundles placed in the plugins directory.

My question is how to automatically start those discovered bundles?


Thanks & Best Regards,

Yu Zhong, Cao
Pascal Rapicault | 4 Jul 03:25
Picon

Re: How to automatically discover and start bundles?

The discovery and the installation is performed by
org.eclipse.update.configurator, however this bundle will not automatically
start the discovered bundles.
If you are interesting in fine grained controlled of the bundle that are
being installed, started and their start level you can look at the
org.eclipse.equinox.simpleconfigurator in the equinox-incubator under
provisioning. However note that this bundle does not do discovery since
this is something that we are trying to get out of.
Also Peter Kriens (or maybe the Felix implementation) has a bundle that I
believe does part of the behavior you are looking for, but I don't know its
name.

HTH

PaScaL

                                                                           
             Yu Zhong Cao                                                  
             <caoyuz@...                                             
             m>                                                         To 
             Sent by:                  equinox-dev@...             
             equinox-dev-bounc                                          cc 
             es@...                                                
                                                                   Subject 
                                       [equinox-dev] How to automatically  
             07/03/2007 09:03          discover and start bundles?         
             PM                                                            

                                                                           
             Please respond to                                             
                  Equinox                                                  
                development                                                
               mailing list                                                
             <equinox-dev <at> ecli                                             
                 pse.org>                                                  

By setting the osgi.bundles in config.ini to
"org.eclipse.equinox.common <at> 2:start,
org.eclipse.update.configurator <at> 3:start"
will give "Automatic bundle discovery/Install" for the bundles placed in
the plugins directory.

My question is how to automatically start those discovered bundles?

Thanks & Best Regards,

Yu Zhong, Cao_______________________________________________
equinox-dev mailing list
equinox-dev@...
https://dev.eclipse.org/mailman/listinfo/equinox-dev

Alex Blewitt | 4 Jul 09:44
Picon
Gravatar

Re: How to automatically discover and start bundles?

Are you thinking of FileInstall?

http://www.aqute.biz/Code/FileInstall

Alex.

On 04/07/07, Pascal Rapicault <Pascal_Rapicault@...> wrote:
> The discovery and the installation is performed by
> org.eclipse.update.configurator, however this bundle will not automatically
> start the discovered bundles.
> If you are interesting in fine grained controlled of the bundle that are
> being installed, started and their start level you can look at the
> org.eclipse.equinox.simpleconfigurator in the equinox-incubator under
> provisioning. However note that this bundle does not do discovery since
> this is something that we are trying to get out of.
> Also Peter Kriens (or maybe the Felix implementation) has a bundle that I
> believe does part of the behavior you are looking for, but I don't know its
> name.
>
> HTH
>
> PaScaL
>
>
>
>              Yu Zhong Cao
>              <caoyuz@...
>              m>                                                         To
>              Sent by:                  equinox-dev@...
>              equinox-dev-bounc                                          cc
>              es@...
>                                                                    Subject
>                                        [equinox-dev] How to automatically
>              07/03/2007 09:03          discover and start bundles?
>              PM
>
>
>              Please respond to
>                   Equinox
>                 development
>                mailing list
>              <equinox-dev <at> ecli
>                  pse.org>
>
>
>
>
>
>
>
> By setting the osgi.bundles in config.ini to
> "org.eclipse.equinox.common <at> 2:start,
> org.eclipse.update.configurator <at> 3:start"
> will give "Automatic bundle discovery/Install" for the bundles placed in
> the plugins directory.
>
> My question is how to automatically start those discovered bundles?
>
>
> Thanks & Best Regards,
>
> Yu Zhong, Cao_______________________________________________
> equinox-dev mailing list
> equinox-dev@...
> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>
>
> _______________________________________________
> equinox-dev mailing list
> equinox-dev@...
> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>
Pascal Rapicault | 4 Jul 15:21
Picon

Re: How to automatically discover and start bundles?

Yep. Thx

                                                                           
             "Alex Blewitt"                                                
             <alex.blewitt <at> gma                                             
             il.com>                                                    To 
             Sent by:                  "Equinox development mailing list"  
             equinox-dev-bounc         <equinox-dev@...>           
             es@...                                             cc 
                                       equinox-dev-bounces@...     
                                                                   Subject 
             07/04/2007 03:44          Re: [equinox-dev] How to            
             AM                        automatically discover and start    
                                       bundles?                            

             Please respond to                                             
                  Equinox                                                  
                development                                                
               mailing list                                                
             <equinox-dev <at> ecli                                             
                 pse.org>                                                  

Are you thinking of FileInstall?

http://www.aqute.biz/Code/FileInstall

Alex.

On 04/07/07, Pascal Rapicault <Pascal_Rapicault@...> wrote:
> The discovery and the installation is performed by
> org.eclipse.update.configurator, however this bundle will not
automatically
> start the discovered bundles.
> If you are interesting in fine grained controlled of the bundle that are
> being installed, started and their start level you can look at the
> org.eclipse.equinox.simpleconfigurator in the equinox-incubator under
> provisioning. However note that this bundle does not do discovery since
> this is something that we are trying to get out of.
> Also Peter Kriens (or maybe the Felix implementation) has a bundle that I
> believe does part of the behavior you are looking for, but I don't know
its
> name.
>
> HTH
>
> PaScaL
>
>
>
>              Yu Zhong Cao
>              <caoyuz@...
>              m>
To
>              Sent by:                  equinox-dev@...
>              equinox-dev-bounc
cc
>              es@...
>
Subject
>                                        [equinox-dev] How to automatically
>              07/03/2007 09:03          discover and start bundles?
>              PM
>
>
>              Please respond to
>                   Equinox
>                 development
>                mailing list
>              <equinox-dev <at> ecli
>                  pse.org>
>
>
>
>
>
>
>
> By setting the osgi.bundles in config.ini to
> "org.eclipse.equinox.common <at> 2:start,
> org.eclipse.update.configurator <at> 3:start"
> will give "Automatic bundle discovery/Install" for the bundles placed in
> the plugins directory.
>
> My question is how to automatically start those discovered bundles?
>
>
> Thanks & Best Regards,
>
> Yu Zhong, Cao_______________________________________________
> equinox-dev mailing list
> equinox-dev@...
> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>
>
> _______________________________________________
> equinox-dev mailing list
> equinox-dev@...
> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>
_______________________________________________
equinox-dev mailing list
equinox-dev@...
https://dev.eclipse.org/mailman/listinfo/equinox-dev

John Arthorne | 4 Jul 17:45
Picon

Provisioning metadata in flux


Heads up: Pascal and I are hacking on the incubator provisioning metadata APIs today, and we anticipate some major breakages. We suggest avoiding changes to org.eclipse.equinox.prov.metadata until the bits have settled (hopefully end of today or tomorrow).
Steven E. Harris | 4 Jul 19:55
Picon
Gravatar

Re: Equinox, OBR and all that

ChangWoo Jung <jungcw@...> writes:

> Please give it a try and let me know if you encounter any problem.

Can you give some hints as to how to use it, or what it's supposed to
do? I installed it, but can't find any visible difference in Eclipse, or
any evidence of the bundle set having added anything.

--

-- 
Steven E. Harris


Gmane