You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Mathieu Plourde <ma...@gmail.com> on 2008/05/30 05:45:50 UTC

Question about Deployment Admin and Bundle Repository.

Hello all,

   I need help understanding Deployment Admin service. Is it like the Felix
OSGi bundle repository service, but instead of treating bundle, it treats
deployment packages (which can be summarized as groups of bundles)?

Is there an implementation of the deployment admin in Felix?

Thank you very much!

Sincerely,
     Mathieu Plourde

Re: Question about Deployment Admin and Bundle Repository.

Posted by Marcel Offermans <ma...@luminis.nl>.
On May 30, 2008, at 14:50 , Felix Meschberger wrote:

> Am Freitag, den 30.05.2008, 08:30 -0400 schrieb Mathieu Plourde:
>> In the Deployment Admin implementation of Felix, is there something  
>> to treat
>> deployment package repositories? Let's say I want a repository of  
>> deployment
>> packages on a server, is there anything similar to what the OBR  
>> does, but
>> for deployment packages? Is there a standard for that? In my  
>> application,
>> the user would input the URL of the repository, and from a file (like
>> repository.xml for the OBR), the service could download and deploy  
>> the
>> deployment packages. Does it exist?
>
> To my knowledge nothing specific for Deployment Packages exists. But  
> as
> the OBR is sufficiently generic, it might be possible to extend it to
> also support Deployment Packages. Not sure, though. But I agree, that
> this would be very helpful.

I agree. We have already used an OBR to store other types of artifacts  
(not just bundles) and I think that makes a lot of sense.

Greetings, Marcel


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


Re: Question about Deployment Admin and Bundle Repository.

Posted by Karl Pauls <ka...@gmail.com>.
On Fri, May 30, 2008 at 2:50 PM, Felix Meschberger <fm...@gmail.com> wrote:
> Hi,
>
> Am Freitag, den 30.05.2008, 08:30 -0400 schrieb Mathieu Plourde:
>> In the Deployment Admin implementation of Felix, is there something to treat
>> deployment package repositories? Let's say I want a repository of deployment
>> packages on a server, is there anything similar to what the OBR does, but
>> for deployment packages? Is there a standard for that? In my application,
>> the user would input the URL of the repository, and from a file (like
>> repository.xml for the OBR), the service could download and deploy the
>> deployment packages. Does it exist?
>
> To my knowledge nothing specific for Deployment Packages exists. But as
> the OBR is sufficiently generic, it might be possible to extend it to
> also support Deployment Packages. Not sure, though. But I agree, that
> this would be very helpful.

I agree that something like this would be useful. I wrote a simple
shell command that at least makes it easy to install/update/uninstall
deployment packages much like one can do right now with bundles. I
might get around to commit it to my sandbox during the weekend.

regards,

Karl

> Regards
> Felix
>
>>
>> Thanks.
>>
>> 2008/5/30 Felix Meschberger <fm...@gmail.com>:
>>
>> > Hi Mathieu,
>> >
>> > Am Donnerstag, den 29.05.2008, 23:45 -0400 schrieb Mathieu Plourde:
>> > > Hello all,
>> > >
>> > >    I need help understanding Deployment Admin service. Is it like the
>> > Felix
>> > > OSGi bundle repository service, but instead of treating bundle, it treats
>> > > deployment packages (which can be summarized as groups of bundles)?
>> >
>> > Both have kind of similar goals: Easier deployment. But there the
>> > analogy ends.
>> >
>> > The OBR is just a repository of bundles with a descriptor file - usually
>> > called repository.xml - which lists all bundles provided along with
>> > their properties, capabilities and requirements amongst them. A user of
>> > the OBR will select bundles required for his application and the bundle
>> > repository code will automatically resolve any missing requirements
>> > using other bundles from the OBR.
>> >
>> > The Deployment Admin on the other defines a packaging specification
>> > (with extensibility) to package multiple bundles into a single package
>> > and deploy it to some running OSGi frameworks. The deployment package
>> > may declare further dependencies which must be resolved in the framework
>> > to successfully deploy the package. The Deployment Admin spec also has
>> > some installation guaranetees in it such as transactionality in some
>> > sense: installing a Deployment Package is an all-or-nothing game: Either
>> > the package insalls completely or not at all if there occurr some
>> > problems while trying to install.
>> >
>> > > Is there an implementation of the deployment admin in Felix?
>> >
>> > Yes, we got a recent contribution which is in the deploymentadmin
>> > project in the Felix SVN trunk.
>> >
>> > > Thank you very much!
>> >
>> > Hope this helps.
>> >
>> > Regards
>> > Felix
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> > For additional commands, e-mail: users-help@felix.apache.org
>> >
>> >
>
>
> ---------------------------------------------------------------------
> 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: Question about Deployment Admin and Bundle Repository.

Posted by Felix Meschberger <fm...@gmail.com>.
Hi,

Am Freitag, den 30.05.2008, 08:30 -0400 schrieb Mathieu Plourde:
> In the Deployment Admin implementation of Felix, is there something to treat
> deployment package repositories? Let's say I want a repository of deployment
> packages on a server, is there anything similar to what the OBR does, but
> for deployment packages? Is there a standard for that? In my application,
> the user would input the URL of the repository, and from a file (like
> repository.xml for the OBR), the service could download and deploy the
> deployment packages. Does it exist?

To my knowledge nothing specific for Deployment Packages exists. But as
the OBR is sufficiently generic, it might be possible to extend it to
also support Deployment Packages. Not sure, though. But I agree, that
this would be very helpful.

Regards
Felix

> 
> Thanks.
> 
> 2008/5/30 Felix Meschberger <fm...@gmail.com>:
> 
> > Hi Mathieu,
> >
> > Am Donnerstag, den 29.05.2008, 23:45 -0400 schrieb Mathieu Plourde:
> > > Hello all,
> > >
> > >    I need help understanding Deployment Admin service. Is it like the
> > Felix
> > > OSGi bundle repository service, but instead of treating bundle, it treats
> > > deployment packages (which can be summarized as groups of bundles)?
> >
> > Both have kind of similar goals: Easier deployment. But there the
> > analogy ends.
> >
> > The OBR is just a repository of bundles with a descriptor file - usually
> > called repository.xml - which lists all bundles provided along with
> > their properties, capabilities and requirements amongst them. A user of
> > the OBR will select bundles required for his application and the bundle
> > repository code will automatically resolve any missing requirements
> > using other bundles from the OBR.
> >
> > The Deployment Admin on the other defines a packaging specification
> > (with extensibility) to package multiple bundles into a single package
> > and deploy it to some running OSGi frameworks. The deployment package
> > may declare further dependencies which must be resolved in the framework
> > to successfully deploy the package. The Deployment Admin spec also has
> > some installation guaranetees in it such as transactionality in some
> > sense: installing a Deployment Package is an all-or-nothing game: Either
> > the package insalls completely or not at all if there occurr some
> > problems while trying to install.
> >
> > > Is there an implementation of the deployment admin in Felix?
> >
> > Yes, we got a recent contribution which is in the deploymentadmin
> > project in the Felix SVN trunk.
> >
> > > Thank you very much!
> >
> > Hope this helps.
> >
> > Regards
> > Felix
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> > For additional commands, e-mail: users-help@felix.apache.org
> >
> >


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


Re: Question about Deployment Admin and Bundle Repository.

Posted by Mathieu Plourde <ma...@gmail.com>.
In the Deployment Admin implementation of Felix, is there something to treat
deployment package repositories? Let's say I want a repository of deployment
packages on a server, is there anything similar to what the OBR does, but
for deployment packages? Is there a standard for that? In my application,
the user would input the URL of the repository, and from a file (like
repository.xml for the OBR), the service could download and deploy the
deployment packages. Does it exist?

Thanks.

2008/5/30 Felix Meschberger <fm...@gmail.com>:

> Hi Mathieu,
>
> Am Donnerstag, den 29.05.2008, 23:45 -0400 schrieb Mathieu Plourde:
> > Hello all,
> >
> >    I need help understanding Deployment Admin service. Is it like the
> Felix
> > OSGi bundle repository service, but instead of treating bundle, it treats
> > deployment packages (which can be summarized as groups of bundles)?
>
> Both have kind of similar goals: Easier deployment. But there the
> analogy ends.
>
> The OBR is just a repository of bundles with a descriptor file - usually
> called repository.xml - which lists all bundles provided along with
> their properties, capabilities and requirements amongst them. A user of
> the OBR will select bundles required for his application and the bundle
> repository code will automatically resolve any missing requirements
> using other bundles from the OBR.
>
> The Deployment Admin on the other defines a packaging specification
> (with extensibility) to package multiple bundles into a single package
> and deploy it to some running OSGi frameworks. The deployment package
> may declare further dependencies which must be resolved in the framework
> to successfully deploy the package. The Deployment Admin spec also has
> some installation guaranetees in it such as transactionality in some
> sense: installing a Deployment Package is an all-or-nothing game: Either
> the package insalls completely or not at all if there occurr some
> problems while trying to install.
>
> > Is there an implementation of the deployment admin in Felix?
>
> Yes, we got a recent contribution which is in the deploymentadmin
> project in the Felix SVN trunk.
>
> > Thank you very much!
>
> Hope this helps.
>
> Regards
> Felix
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>

Re: Question about Deployment Admin and Bundle Repository.

Posted by Marcel Offermans <ma...@luminis.nl>.
On May 30, 2008, at 19:37 , Karl Pauls wrote:

>> Actually, I am looking for a spec document to learn more. Is there  
>> one? I
>> don't want just the javadocs.
>
> Yes, it's described in the mobile spec. You can download it from www.osgi.org 
> .

It's no longer part of the mobile spec, but part of the R4.1  
compendium, available from that same location.

Greetings, Marcel


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


Re: Question about Deployment Admin and Bundle Repository.

Posted by Karl Pauls <ka...@gmail.com>.
On Fri, May 30, 2008 at 6:12 PM, Sahoo <sa...@sun.com> wrote:
> Felix Meschberger wrote:
>>
>> The Deployment Admin on the other defines a packaging specification
>> (with extensibility) to package multiple bundles into a single package
>> and deploy it to some running OSGi frameworks. The deployment package
>> may declare further dependencies which must be resolved in the framework
>> to successfully deploy the package. The Deployment Admin spec also has
>> some installation guaranetees in it such as transactionality in some
>> sense: installing a Deployment Package is an all-or-nothing game: Either
>> the package insalls completely or not at all if there occurr some
>> problems while trying to install.
>
> Once deployment of the package is complete, does it have any effect in
> runtime?

Not really. The only thing is that the deployment admin will try to
rollback if something goes wrong when the dp gets installed.

> Does it create a namespace of its own, or the bundles that get
> deployed as part of the deployment package behave as if they were installed
> separately?

They behave as if they were installed separately.

> Actually, I am looking for a spec document to learn more. Is there one? I
> don't want just the javadocs.

Yes, it's described in the mobile spec. You can download it from www.osgi.org.

regards,

Karl

> Thanks,
> Sahoo
>
> ---------------------------------------------------------------------
> 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: Question about Deployment Admin and Bundle Repository.

Posted by Sahoo <sa...@sun.com>.
Felix Meschberger wrote:
> The Deployment Admin on the other defines a packaging specification
> (with extensibility) to package multiple bundles into a single package
> and deploy it to some running OSGi frameworks. The deployment package
> may declare further dependencies which must be resolved in the framework
> to successfully deploy the package. The Deployment Admin spec also has
> some installation guaranetees in it such as transactionality in some
> sense: installing a Deployment Package is an all-or-nothing game: Either
> the package insalls completely or not at all if there occurr some
> problems while trying to install.
Once deployment of the package is complete, does it have any effect in 
runtime? Does it create a namespace of its own, or the bundles that get 
deployed as part of the deployment package behave as if they were 
installed separately?

Actually, I am looking for a spec document to learn more. Is there one? 
I don't want just the javadocs.

Thanks,
Sahoo

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


Re: Question about Deployment Admin and Bundle Repository.

Posted by Felix Meschberger <fm...@gmail.com>.
Hi Mathieu,

Am Donnerstag, den 29.05.2008, 23:45 -0400 schrieb Mathieu Plourde:
> Hello all,
> 
>    I need help understanding Deployment Admin service. Is it like the Felix
> OSGi bundle repository service, but instead of treating bundle, it treats
> deployment packages (which can be summarized as groups of bundles)?

Both have kind of similar goals: Easier deployment. But there the
analogy ends.

The OBR is just a repository of bundles with a descriptor file - usually
called repository.xml - which lists all bundles provided along with
their properties, capabilities and requirements amongst them. A user of
the OBR will select bundles required for his application and the bundle
repository code will automatically resolve any missing requirements
using other bundles from the OBR.

The Deployment Admin on the other defines a packaging specification
(with extensibility) to package multiple bundles into a single package
and deploy it to some running OSGi frameworks. The deployment package
may declare further dependencies which must be resolved in the framework
to successfully deploy the package. The Deployment Admin spec also has
some installation guaranetees in it such as transactionality in some
sense: installing a Deployment Package is an all-or-nothing game: Either
the package insalls completely or not at all if there occurr some
problems while trying to install.

> Is there an implementation of the deployment admin in Felix?

Yes, we got a recent contribution which is in the deploymentadmin
project in the Felix SVN trunk.

> Thank you very much!

Hope this helps.

Regards
Felix


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