0 Replies Latest reply on Sep 11, 2008 1:22 PM by muhviehstarr

    The @Destroy-Method is not called when removing bean

    muhviehstarr

      I want to manually remove a conversational bean (JavaBean) and use the following method:



      @In
      private Contexts contexts;
      
      contexts.getConversationContext().remove(beanName);
      



      The bean is then removed from the context and a new bean is constructed if #{beanName} is used.
      But in this case the @Destroy-method of the old instance is never called.


      Is this a bug,  a feature or do I something wrong?