You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2012/07/30 10:32:33 UTC

[jira] [Created] (ARIES-887) destroy-method attribute not supported in bean nested in service

Jean-Baptiste Onofré created ARIES-887:
------------------------------------------

             Summary: 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é
            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

       

[jira] [Resolved] (ARIES-887) destroy-method attribute not supported in bean nested in service

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ 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