Re: [osgi-dev] Can we have dynamic sevlets?

2018-02-13 Thread Henrik Niehaus via osgi-dev
Hi, I think the problem here is, that the export function in the bndrun files does not create an OSGi bundle, but a jar file, which contains the whole application. Just open that jar with an archive tool and have a look at the contents. The jar, which is created, already contains (or at least it

Re: [osgi-dev] Can a DS component control its service properties programmatically?

2018-02-13 Thread BJ Hargrave via osgi-dev
You could do this by using a component factory. You would need another component to get the ComponentFactory service and call ComponentFactory.newInstance with the desired endpoint.framework.uuid service property.   But this is probably overkill for a single service. For a single service, you can

[osgi-dev] Can we have dynamic sevlets?

2018-02-13 Thread Nikhil Chilwant via osgi-dev
Hi, OSGi newbie here. This question is lengthy but I hope it helps people in future. I want to make a software which provides the feature to install/uninstall plugins. Think of something like Eclipse IDE plugins. The only difference is mine is web-app. I thought of implementing plugins as

Re: [osgi-dev] Can a DS component control its service properties programmatically?

2018-02-13 Thread Carsten Ziegeler via osgi-dev
DS does not provide any way to do so. Why not using the framework API and register that listener "by hand"? This could be a small facade around your component. Another more complicated solution would be you require a configuration for your component and in the activator you create an OSGi

[osgi-dev] Can a DS component control its service properties programmatically?

2018-02-13 Thread Christian Schneider via osgi-dev
I would like to create a component that is an remote service admin EndpointEventListener. So it needs a property endpoint.listener.scope with a filter string. The problem now is that I want this scope to only include endpoints from the local framework. So I need something like: