Sergey,
That is correct, I have noticed that too and created an issue about that
last week. See https://issues.apache.org/jira/browse/SMX4-703
If you like to see it resolved you can vote for it so it will get more
attention from the committers.
Geert Schuring.
-----Original Message-----
From: [email protected]
Sent: Friday, December 17, 2010 1:07 PM
To: [email protected]
Subject: Re: ServiceMix 4: OSGi - How to isolate an entire application?
Hi Geert,
I have already tried to use admin:create command trying to expand a
cluster and I have had some problems. For example child instance created
by means of admin:create command is not equal to the parent instance.
Here are files in the etc directory of the parent instance:
config.properties
custom.properties
host.key
java.util.logging.properties
jre.properties
org.apache.aries.transaction.cfg
org.apache.felix.fileinstall-deploy.cfg
org.apache.karaf.features.cfg
org.apache.karaf.log.cfg
org.apache.karaf.management.cfg
org.apache.karaf.shell.cfg
org.apache.servicemix.jbi.cfg
org.apache.servicemix.nmr.cfg
org.ops4j.pax.logging.cfg
org.ops4j.pax.url.mvn.cfg
shell.init.script
startup.properties
system.properties
users.properties
Here are files in the etc directory of the child instance:
config.properties
custom.properties
host.key
java.util.logging.properties
jre.properties
org.apache.felix.fileinstall-deploy.cfg
org.apache.karaf.features.cfg
org.apache.karaf.log.cfg
org.apache.karaf.management.cfg
org.apache.karaf.shell.cfg
org.ops4j.pax.logging.cfg
org.ops4j.pax.url.mvn.cfg
startup.properties
system.properties
users.properties
File org.apache.karaf.features.cfg in the child instance does not contain
all the features and repositories which are listed in the file of the
parent instance.
Regards,
Sergey
"Geert Schuring" <[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?
Of course you can always create new instance (admin:create <instanceName>)
and deploy your application there. That way you can also easily restart
instances without taking down all the deployed applications on other
instances.
http://karaf.apache.org/47-administration.html
Greets,
Geert.
Yes, there's a plan to do so, but currently there's no standard way of
doing so. In a few months, OSGi Core 4.3 should get out and will
provide support for doing that through so called "resolver hooks" so
that a part of the framework can be isolated from other bundles.
On a side note, this comes from a requirement to do exactly that and
the main driver is the subsystem specs which is being worked on in
Aries and the OSGi alliance and that will provide a standard for
deploying applications in OSGi (including isolation).
Once the hooks are available, I think Karaf features could also be
made isolated.
That said, you can already use Aries EBA inside ServiceMix afaik, so
feel free to use that for now if you really need runtime isolation
(does EBA applications really provide that yet?), but it has to be
using some equinox specific mechanism I suppose.
On Fri, Dec 17, 2010 at 07:54, <[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
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com