aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (ARIES-887) destroy-method attribute not supported in bean nested in service
Date Mon, 30 Jul 2012 09:08:34 GMT

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

Guillaume Nodet resolved ARIES-887.
-----------------------------------

    Resolution: Not A Problem
      Assignee: Guillaume Nodet

Beans with a prototype scope (which is the case for all inlined beans) have a different lifecycle
and don't support the destroy-method attribute.  Such beans must be managed by the application.
A work-around is to use a top level bean.
                
> destroy-method attribute not supported in bean nested in service
> ----------------------------------------------------------------
>
>                 Key: ARIES-887
>                 URL: https://issues.apache.org/jira/browse/ARIES-887
>             Project: Aries
>          Issue Type: Bug
>          Components: Blueprint
>    Affects Versions: blueprint-0.3.1
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Guillaume Nodet
>            Priority: Minor
>
> If we have a blueprint descriptor like this:
> <service interface="...">
>   <bean class="..." destroy-method="..."/>
> </service>
> we get:
> Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'destroy-method'
is not allowed to appear in element 'bean'.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message