0 Replies Latest reply on Dec 13, 2013 9:00 AM by christophe.carvalho

    How to have a new instance of a "@Produces" object

    christophe.carvalho

      Hi,

       

      In Weld 1.1 how can i change the value of a property created with the @Produces annotation ? Here is an example of what i want to do :

       

      • In a fisrt bean i have the following property :
      @Produces @CurrentSociete @SessionScoped private Societe currentSociete;

       

      • In a second bean i want to change the value :
      @Inject @CurrentSociete private Societe currentSociete; private void changeValue() {      currentSociete = selectedSociete; }

       

      • In a third bean the property "currentSociete" still has the old value ...

       

       

      How can i do that ?

       

       

      Best regards.