You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Se...@troika.ru on 2011/01/17 13:05:33 UTC

What is the best way to deploy an OSGi application in the ServiceMix/Karaf?

Hi there,

I'm depeloping an OSGi application that will be run under the ServiceMix 4 
and I'm interested in what is the best way to deploy such an application 
under the ServiceMix.
I have tried to use maven proxy such as nexus to deliver bundles and 
features, but in case of instability of that maven proxy deployments fail.

I'd like to try to deploy applications as KAR files which seems to fit my 
needs but I wonder if there are multiple bundles of the same version in 
the different KAR files what will be the behavior of the ServiceMix? Is it 
going to try to resolve, start, etc. the same bundle in different KAR 
files multiple times?

I'm also interested in whether it is possible to deploy KAR files in the 
ServiceMix? It seems that there is no such a feature in the karaf 2.0 
which ServiceMix 4 built on.


Best Regards,
Sergey

Re: What is the best way to deploy an OSGi application in the ServiceMix/Karaf?

Posted by Adrian Trenaman <tr...@progress.com>.
JB's right - extracting a second KAR file with bundles that are already 
present will simply overwrite the bundles in the file-system, it will 
not cause the bundles to get redeployed.

On 17/01/2011 13:42, Jean-Baptiste Onofré wrote:
> Hi Sergey,
>
> ServiceMix 4.3.0 will be based on Karaf 2.1.x. So KAR archive will be
> supported.
>
> In the case of several kar provide the same bundle in the same version,
> it's exactly like a feature, if the bundle is already deployed, it won't
> be deployed a second time and no error will be reported.
>
> FYI, we're working on a centralized tool for deployment: all artifact
> are in a location and pushed to target (like Karaf and ServiceMix). I'm
> working on Apache ACE for that. It's not yet ready but we do our best to
> make a release soon.
>
> Regards
> JB
>
> On 01/17/2011 01:05 PM, Sergey_Zhemzhitsky@troika.ru wrote:
>> Hi there,
>>
>> I'm depeloping an OSGi application that will be run under the ServiceMix 4
>> and I'm interested in what is the best way to deploy such an application
>> under the ServiceMix.
>> I have tried to use maven proxy such as nexus to deliver bundles and
>> features, but in case of instability of that maven proxy deployments fail.
>>
>> I'd like to try to deploy applications as KAR files which seems to fit my
>> needs but I wonder if there are multiple bundles of the same version in
>> the different KAR files what will be the behavior of the ServiceMix? Is it
>> going to try to resolve, start, etc. the same bundle in different KAR
>> files multiple times?
>>
>> I'm also interested in whether it is possible to deploy KAR files in the
>> ServiceMix? It seems that there is no such a feature in the karaf 2.0
>> which ServiceMix 4 built on.
>>
>>
>> Best Regards,
>> Sergey

-- 
Adrian Trenaman, Sr. Principal Solution Architect
FuseSource
Phone: +353-86-6051026
Email: trenaman@fusesource.com
Web: http://trenaman.blogspot.com, http://fusesource.com
Twitter: adrian_trenaman


Re: What is the best way to deploy an OSGi application in the ServiceMix/Karaf?

Posted by Se...@troika.ru.
Hi Jean-Baptiste,

Thanks a lot.

I'm looking forward to the Apache ACE release to give it a try.


Regards,
Sergey




Jean-Baptiste Onofré <jb...@nanthrax.net> 
17.01.2011 15:43
Please respond to
users@servicemix.apache.org


To
users@servicemix.apache.org
cc

Subject
Re: What is the best way to deploy an OSGi application in the 
ServiceMix/Karaf?






Hi Sergey,

ServiceMix 4.3.0 will be based on Karaf 2.1.x. So KAR archive will be 
supported.

In the case of several kar provide the same bundle in the same version, 
it's exactly like a feature, if the bundle is already deployed, it won't 
be deployed a second time and no error will be reported.

FYI, we're working on a centralized tool for deployment: all artifact 
are in a location and pushed to target (like Karaf and ServiceMix). I'm 
working on Apache ACE for that. It's not yet ready but we do our best to 
make a release soon.

Regards
JB

On 01/17/2011 01:05 PM, Sergey_Zhemzhitsky@troika.ru wrote:
> Hi there,
>
> I'm depeloping an OSGi application that will be run under the ServiceMix 
4
> and I'm interested in what is the best way to deploy such an application
> under the ServiceMix.
> I have tried to use maven proxy such as nexus to deliver bundles and
> features, but in case of instability of that maven proxy deployments 
fail.
>
> I'd like to try to deploy applications as KAR files which seems to fit 
my
> needs but I wonder if there are multiple bundles of the same version in
> the different KAR files what will be the behavior of the ServiceMix? Is 
it
> going to try to resolve, start, etc. the same bundle in different KAR
> files multiple times?
>
> I'm also interested in whether it is possible to deploy KAR files in the
> ServiceMix? It seems that there is no such a feature in the karaf 2.0
> which ServiceMix 4 built on.
>
>
> Best Regards,
> Sergey


Re: What is the best way to deploy an OSGi application in the ServiceMix/Karaf?

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

ServiceMix 4.3.0 will be based on Karaf 2.1.x. So KAR archive will be 
supported.

In the case of several kar provide the same bundle in the same version, 
it's exactly like a feature, if the bundle is already deployed, it won't 
be deployed a second time and no error will be reported.

FYI, we're working on a centralized tool for deployment: all artifact 
are in a location and pushed to target (like Karaf and ServiceMix). I'm 
working on Apache ACE for that. It's not yet ready but we do our best to 
make a release soon.

Regards
JB

On 01/17/2011 01:05 PM, Sergey_Zhemzhitsky@troika.ru wrote:
> Hi there,
>
> I'm depeloping an OSGi application that will be run under the ServiceMix 4
> and I'm interested in what is the best way to deploy such an application
> under the ServiceMix.
> I have tried to use maven proxy such as nexus to deliver bundles and
> features, but in case of instability of that maven proxy deployments fail.
>
> I'd like to try to deploy applications as KAR files which seems to fit my
> needs but I wonder if there are multiple bundles of the same version in
> the different KAR files what will be the behavior of the ServiceMix? Is it
> going to try to resolve, start, etc. the same bundle in different KAR
> files multiple times?
>
> I'm also interested in whether it is possible to deploy KAR files in the
> ServiceMix? It seems that there is no such a feature in the karaf 2.0
> which ServiceMix 4 built on.
>
>
> Best Regards,
> Sergey