You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Christian Schneider (JIRA)" <ji...@apache.org> on 2017/05/02 10:27:04 UTC

[jira] [Closed] (ARIES-1267) factory-ref is not supported by managed-component within managed-service-factory element, and the factory-component decorator is not implemented

     [ https://issues.apache.org/jira/browse/ARIES-1267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Schneider closed ARIES-1267.
--------------------------------------
    Resolution: Won't Fix

Closing this issue as there was no feedback.

> factory-ref is not supported by managed-component within managed-service-factory element, and the factory-component decorator is not implemented
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ARIES-1267
>                 URL: https://issues.apache.org/jira/browse/ARIES-1267
>             Project: Aries
>          Issue Type: Bug
>          Components: Blueprint
>            Reporter: Edward Ost
>            Assignee: Christian Schneider
>            Priority: Minor
>
> I would like to use a factory bean with a managed service factory.  The intellisense tells me that a factory-component attribute is supported.  But when I try it I get the error
> org.apache.aries.blueprint.core - 1.1.0 | Unable to start blueprint container for bundle jdbc_example org.osgi.service.blueprint.container.ComponentDefinitionException: Bean class or factory-ref must be specified
> If I then try factory-ref it tells me 
> Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'factory-ref' is not allowed to appear in element 'cm:managed-component'.
> This is to be expected since looking at the schema http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.1.0.xsd only factory-component is listed.  
> Sample blueprint config showing the intent.
>     <cm:managed-service-factory id="msf.managedBean" factory-pid="msf.ManagedBean" interface="net.eost.example.osgi.jdbc.ManagedBean">
>         <service-properties>
>         </service-properties>
>         <cm:managed-component factory-component="mbf" factory-method="create" destroy-method="destroy">
>             <cm:managed-properties persistent-id="" update-strategy="container-managed"/>
>         </cm:managed-component>
>     </cm:managed-service-factory>



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)