[
https://issues.apache.org/jira/browse/FELIX-2546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12991535#comment-12991535
]
Guillaume Nodet commented on FELIX-2546:
----------------------------------------
Note that the "work correctly" would be a really bad name ;-)
Something like
{code}
int SOLVE_MULTIPLE_REQUIREMENTS = 0x20;
{code}
If you don't want to change your code, I'd be happy to include an OSGi
configuration that would provide a different default value through the
BundleContext.getProperty() so that we could both live with our code without
having to change it.
I actually think it could be a good idea and other default values such as
resolving optional requirements, etc... could be provided too.
The default wanted value could be discussed independently of the compatibility
issue. Solving all optional or multiple dependencies can lead to a big
solution which does not represent anything anymore.
> Only one service is provisioned even when specifying for mulitple services
> --------------------------------------------------------------------------
>
> Key: FELIX-2546
> URL: https://issues.apache.org/jira/browse/FELIX-2546
> Project: Felix
> Issue Type: Bug
> Components: Bundle Repository (OBR)
> Affects Versions: bundlerepository-1.6.4
> Environment: n/a
> Reporter: Emily Jiang
> Attachments: Felix OBR isMultiple support - timothyjward.txt
>
>
> Felix OBR is unable to return multiple services when specifying 'multiple'
> attribute with the value of 'true'. The test scenario is detailed below.
> I am trying to get all bundles registering the service of
> com.sample.HelloWorld and install them into the osgi framework . In my test
> environment, there are two bundles with different symbolic name offering the
> same service, com.sample.HelloWorld. However, only one bundle was pulled into
> runtime. The snippet of my repository is shown below.
> <require extend="false"
> filter="(&(service=service)(objectClass=com.sample.HelloWorld)(mandatory:<*service))"
> multiple="true" name="service" optional="false">Requires service with
> attributes {service=service, objectClass=com.sample.HelloWorld}</require>
> Regards
> Emily
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira