Hi Jean-Baptiste,

Does KAR files provide any level of isolation? 
I though that it is only an archive of repositories of features, so all 
the bundles in such a file might be shared.


Best Regards,
Sergey




Jean-Baptiste Onofré <[email protected]> 
17.12.2010 14:09
Please respond to
[email protected]


To
[email protected]
cc

Subject
Re: ServiceMix 4: OSGi - How to isolate an entire application?






Hi Sergey,

In your bundle, you can choose:
- the package that you want to export by using Export-Package and 
Private-Package of the Felix bundle maven plugin.
- using Blueprint, you define the service that you register in the 
ServiceRegistry.

As ServiceMix uses Karaf, in Karaf you can package your application as a 
KAR (Karaf ARchive). You can package several bundle in one KAR.
Without kar, you can use a features descriptor to define the content of 
your application (in terms of bundles).

Regards
JB

On 12/17/2010 07:54 AM, [email protected] wrote:
> Hi there,
>
> I'm trying to use ServiceMix 4 to deploy an OSGi application that 
consists
> of multiple bundles. These bundles provide some services which I don't
> like to be visible for other bundles. I also don't like other bundles to
> see exported packages of my bundles in my application.
>
> Is it possible to isolate an entire application? I need something like
> Apache Aries' EBA analogy or Virgo's (ex- SpingDM Server) Plan, PAR.
>
> I can make my app to be a bundle with multiple jars in Bundle_ClassPath,
> without any imports/exports and without providing any services. Is it an
> appropriate solusion for now? Is there any plans to add features like
> "application scope" to ServiceMix?
>
>
> Regards,
> Sergey

-- 
Jean-Baptiste Onofré
---------------------------------
  HomePage
http://www.nanthrax.net
---------------------------------
  Contacts
[email protected]
[email protected]
---------------------------------
  OpenSource
BuildProcess/AutoDeploy
http://buildprocess.sourceforge.net
Apache ServiceMix
http://servicemix.apache.org
-----------------------------------
PGP : 17D4F086

Reply via email to