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

    The @Destroy-Method is not called when removing bean

    Frank Stolle Newbie

      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?