You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2015/08/07 10:20:45 UTC

[jira] [Commented] (OAK-3194) Provide a way for embedding application to control which all bundles are started

    [ https://issues.apache.org/jira/browse/OAK-3194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14661489#comment-14661489 ] 

Chetan Mehrotra commented on OAK-3194:
--------------------------------------

Exposed a new config property {{org.apache.jackrabbit.oak.repository.bundleFilter}}

*Usage*
{code}
Map<String,Object> config = new HashMap<String, Object>();
..
config.put("org.apache.jackrabbit.oak.repository.bundleFilter", "(|(Bundle-SymbolicName=org.apache.jackrabbit*)(Bundle-SymbolicName=org.apache.sling*)(Bundle-SymbolicName=org.apache.felix*))");
return new OakOSGiRepositoryFactory().getRepository(config);
{code}

Above mode would allow only bundle from Felix, Sling and Jackrabbit modules to get started

> Provide a way for embedding application to control which all bundles are started
> --------------------------------------------------------------------------------
>
>                 Key: OAK-3194
>                 URL: https://issues.apache.org/jira/browse/OAK-3194
>             Project: Jackrabbit Oak
>          Issue Type: Sub-task
>          Components: pojosr, webapp
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>            Priority: Minor
>             Fix For: 1.3.5
>
>
> Felix Connect OSGi support currently scans the whole classpath to find out which all bundles to be started. In Application server deployment this may pickup jars from parent classloader which might have OSGi headers and there activators might get invoked. This might lead to undesired effects.
> Instead the {{ClasspathScanner}} supports a filter to allow selecting which all bundles should be selected from a given scan. {{OakOSGiRepositoryFactory}} should allow specifying of this filter in parameters map



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)