jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chetan Mehrotra (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-3194) Provide a way for embedding application to control which all bundles are started
Date Fri, 07 Aug 2015 08:20:45 GMT

    [ 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)

Mime
View raw message