AFAIK – right now the tools ant and maven plugin for Aries Subsystems does 
mostly handle only “feature” type subsystem, never tried other types, but its 
worth doing it :)

Some details:

UnScoped(feature) or Scoped  (composite,application) [1]

You can see unscoped as kind of open meaning all are exported and all are 
imported ( most common use case you can imagine it to be like Eclipse Plugin 
feature)

As you rightly understood Scoped does control the export/imports via its 
Sharing Capabilities [2]

[1] osgi.enterprise-6.0.0.pdf Chapter 134, Section: 134.16
[2] osgi.enterprise-6.0.0.pdf Chapter 134, Section: 134.8



On 14/07/15 12:21 pm, "Mihael Schmidt" wrote:

I have a set of bundles which form my application. And as I have understood 
subsystem type application it uses the services outside of the subsystem if the 
services are not found inside the subsystem. And subsystem type application 
exports nothing (afaik). So this would fit my application. The application 
doesn't share anything with any other subsystem. The only thing it exposes to 
the outside of the subsystem would be events.

2015-07-14 8:43 GMT+02:00 Kamesh Sampath <[email protected]>:
Am not much aware on Karaf and how it deploys the subsystems.  

Can you let me know why you feel “feature” subsystem is not your requirement , 
just to see if can share my thoughts.

On 14/07/15 12:00 pm, "Mihael Schmidt" wrote:

I use the karaf commands to manage subsystems inside karaf.

I always tried the subsystem type application and it didn't work with it. When 
I switched to subsystem type feature everything worked fine. Though feature is 
not what i necessarily wanted.

2015-07-10 18:39 GMT+02:00 Kamesh Sampath <[email protected]>:
Yeah the old link does not work while the new one works. 

The plain drop does not work for Subsystem, you need to have subsystem 
command[1] bundle and use that to install the subsystems.

[1] 
https://svn.apache.org/repos/asf/aries/trunk/subsystem/subsystem-gogo-command/


On Fri 10 Jul, 2015 7:57 pm Mihael Schmidt <[email protected]> wrote:
Actually I didn't understand what you mean. Does the link work or does it not 
work? You should be able to see the project on this site: 
http://sourceforge.net/u/fist/test.esa/ci/master/tree/

I will try it with a plain Felix installation and then move to Karaf.

BTW ... it all worked when I dropped the bundles into the deploy folder. I used 
the maven esa plugin for building the ESA file.

Thanx

Mihael

2015-07-10 16:12 GMT+02:00 Kamesh Sampath <[email protected]>:
Hi Mihael,

BundleActivator has nothing to do with Subsytems,  “Subsystem” is a mechanism 
to deploy a collection of resources (bundles).  

I hope you have set up the Karaf based like said [1] and did you try building 
your esa using the tools [2]


[1] http://aries.apache.org/modules/subsystems.html
[2] http://aries.apache.org/modules/esaanttask.html (or) 
http://aries.apache.org/modules/esamavenpluginproject.html

Please validate if the SUBSYSTEM.MF is generated correctly.  FYI, the link 
which you have posted for the sample project is to working can you try using 
Github ?

HTH

-Kamesh

On 10/07/15 7:38 pm, "Mihael Schmidt" wrote:

Hi,

I am new to subsystems and would like to use them to deploy my applications. I 
am testing subsystems on Apache Karaf 4.0.0 using Aries Subsystem bundles 2.0.2.

I have a multi module maven project with several bundles. One bundle registers 
an OSGi service via DS, one bundle registers an OSGi service via Blueprint and 
one bundle consumes these services.

Do subsystems work with DS and Blueprint?

I have a BundleActivator in the consumer bundle which should output a log 
entry. But that didn't work. Is BundleActivator supported when using subsystems?

My test project can be cloned from

git://git.code.sf.net/u/fist/test.esa

Thanks in advance.

Mihael

-- 
Mihael Schmidt
Software und System-Entwicklung

Schulz Gebäudeservice GmbH & Co. KG
Dr.-Max-Ilgner-Straße 17
32339 Espelkamp
Persönlich haftende Gesellschafterin:
Gebäudereinigung Joachim Schulz
Verwaltungsgesellschaft mbH
Telefon: +49 5772 9100 0
Telefax: +49 5772 9100 11
Email: [email protected]
Internet: www.sgbs.de
Geschäftsführer: Joachim und Dirk Schulz, Norbert Kosica
Handelsregister Bad Oeynhausen: HRA 5902, HRB 8591
UST-Id-Nr.: DE 125752702



-- 
Mihael Schmidt
Software und System-Entwicklung

Schulz Gebäudeservice GmbH & Co. KG
Dr.-Max-Ilgner-Straße 17
32339 Espelkamp
Persönlich haftende Gesellschafterin:
Gebäudereinigung Joachim Schulz
Verwaltungsgesellschaft mbH
Telefon: +49 5772 9100 0
Telefax: +49 5772 9100 11
Email: [email protected]
Internet: www.sgbs.de
Geschäftsführer: Joachim und Dirk Schulz, Norbert Kosica
Handelsregister Bad Oeynhausen: HRA 5902, HRB 8591
UST-Id-Nr.: DE 125752702



-- 
Mihael Schmidt
Software und System-Entwicklung

Schulz Gebäudeservice GmbH & Co. KG
Dr.-Max-Ilgner-Straße 17
32339 Espelkamp
Persönlich haftende Gesellschafterin:
Gebäudereinigung Joachim Schulz
Verwaltungsgesellschaft mbH
Telefon: +49 5772 9100 0
Telefax: +49 5772 9100 11
Email: [email protected]
Internet: www.sgbs.de
Geschäftsführer: Joachim und Dirk Schulz, Norbert Kosica
Handelsregister Bad Oeynhausen: HRA 5902, HRB 8591
UST-Id-Nr.: DE 125752702



-- 
Mihael Schmidt
Software und System-Entwicklung

Schulz Gebäudeservice GmbH & Co. KG
Dr.-Max-Ilgner-Straße 17
32339 Espelkamp
Persönlich haftende Gesellschafterin:
Gebäudereinigung Joachim Schulz
Verwaltungsgesellschaft mbH
Telefon: +49 5772 9100 0
Telefax: +49 5772 9100 11
Email: [email protected]
Internet: www.sgbs.de
Geschäftsführer: Joachim und Dirk Schulz, Norbert Kosica
Handelsregister Bad Oeynhausen: HRA 5902, HRB 8591
UST-Id-Nr.: DE 125752702

Reply via email to