You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Jörn Gersdorf <jo...@gmail.com> on 2014/09/24 14:25:23 UTC

Karaf features and deployers

Hi karaf-users,

I recently came along the different deployers included in Karaf (described
at http://karaf.apache.org/manual/latest/users-guide/deployers.html), in
particular the blueprint deployer.

My question: is deployment of a "naked" blueprint xml also supported by
Karaf´s  features.xml?

Thanks.

Kind regards,
Jörn

Re: Karaf features and deployers

Posted by j3rem1e <je...@gmail.com>.
Hello,

I'm playing with the new karaf 2.4.0, and the deploying blueprint files from
a boot-feature didn't work. I have a "unknown protocol : blueprint". I
noticed that a lot of frameworks bundles are now deployed through a feature
and not the startup.properties file. This is the case of fileinstall and the
blueprint/deploy bundle, which implement the blueprint protocol handler.

is there an easy way to use blueprint urls in a boot feature ?

thanks !


jbonofre wrote
> ...
> 1/ you can use blueprint: URL in a features XML to directly refer a 
> blueprint descriptor
> ...





--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-features-and-deployers-tp4035477p4035485.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Karaf features and deployers

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Jörn,

I don't know exactly what you mean by "naked" ;)

But, what you can:
1/ you can use blueprint: URL in a features XML to directly refer a 
blueprint descriptor
2/ you can also use <configfile/> to provision a blueprint XML in the 
deploy folder for instance

Is it what you want to do ?

Regards
JB

On 09/24/2014 02:25 PM, Jörn Gersdorf wrote:
> Hi karaf-users,
>
> I recently came along the different deployers included in Karaf
> (described at
> http://karaf.apache.org/manual/latest/users-guide/deployers.html), in
> particular the blueprint deployer.
>
> My question: is deployment of a "naked" blueprint xml also supported by
> Karaf´s  features.xml?
>
> Thanks.
>
> Kind regards,
> Jörn

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Karaf features and deployers

Posted by Jörn Gersdorf <jo...@gersdorf.info>.
Hi Jean-Baptiste,

actually I meant something like the blueprint URL scheme, so that's it.
However, the anonymous version (or embedded blueprint within features.xml)
is also interesting ;-)

Thanks for the quick help.

Kind regards,
Jörn

Viele Grüße
Jörn

On Wed, Sep 24, 2014 at 2:33 PM, Jean-Baptiste Onofré <jb...@nanthrax.net>
wrote:

> Oh by naked, Jörn means:
>
> <feature name="my" version="1.0">
> <blueprint>
> <[CDATA[
> <?xml version="1.0" encoding="UTF-8"?>
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
> ....
> </blueprint>
> ]]>
> </blueprint>
> </feature>
>
> Correct, it's not supported ;)
>
> Maybe the two workarounds that I sent in my previous e-mail could help.
>
> Regards
> JB
>
> On 09/24/2014 02:30 PM, Achim Nierbeck wrote:
>
>> Hi,
>>
>> no the "naked" one only works for drop-in deployment for a watched
>> directory, like the deploy one. The features don't support this, yet.
>>
>> regards, Achim
>>
>>
>> 2014-09-24 14:25 GMT+02:00 Jörn Gersdorf <joern.gersdorf@gmail.com
>> <ma...@gmail.com>>:
>>
>>     Hi karaf-users,
>>
>>     I recently came along the different deployers included in Karaf
>>     (described at
>>     http://karaf.apache.org/manual/latest/users-guide/deployers.html),
>>     in particular the blueprint deployer.
>>
>>     My question: is deployment of a "naked" blueprint xml also supported
>>     by Karaf´s  features.xml?
>>
>>     Thanks.
>>
>>     Kind regards,
>>     Jörn
>>
>>
>>
>>
>> --
>>
>> Apache Member
>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>> & Project Lead
>> blog <http://notizblog.nierbeck.de/>
>>
>> Software Architect / Project Manager / Scrum Master
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Re: Karaf features and deployers

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Oh by naked, Jörn means:

<feature name="my" version="1.0">
<blueprint>
<[CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
....
</blueprint>
]]>
</blueprint>
</feature>

Correct, it's not supported ;)

Maybe the two workarounds that I sent in my previous e-mail could help.

Regards
JB

On 09/24/2014 02:30 PM, Achim Nierbeck wrote:
> Hi,
>
> no the "naked" one only works for drop-in deployment for a watched
> directory, like the deploy one. The features don't support this, yet.
>
> regards, Achim
>
>
> 2014-09-24 14:25 GMT+02:00 Jörn Gersdorf <joern.gersdorf@gmail.com
> <ma...@gmail.com>>:
>
>     Hi karaf-users,
>
>     I recently came along the different deployers included in Karaf
>     (described at
>     http://karaf.apache.org/manual/latest/users-guide/deployers.html),
>     in particular the blueprint deployer.
>
>     My question: is deployment of a "naked" blueprint xml also supported
>     by Karaf´s  features.xml?
>
>     Thanks.
>
>     Kind regards,
>     Jörn
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
> & Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Karaf features and deployers

Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi,

no the "naked" one only works for drop-in deployment for a watched
directory, like the deploy one. The features don't support this, yet.

regards, Achim


2014-09-24 14:25 GMT+02:00 Jörn Gersdorf <jo...@gmail.com>:

> Hi karaf-users,
>
> I recently came along the different deployers included in Karaf (described
> at http://karaf.apache.org/manual/latest/users-guide/deployers.html), in
> particular the blueprint deployer.
>
> My question: is deployment of a "naked" blueprint xml also supported by
> Karaf´s  features.xml?
>
> Thanks.
>
> Kind regards,
> Jörn
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>

Software Architect / Project Manager / Scrum Master