6 Replies Latest reply on Jun 28, 2013 4:46 PM by Horacio Antar

    Problem with errai Event

    Horacio Antar Newbie

      I have a question

      When i use .fire(...) for invoke an event, it is received by the @Observes if it is call in your modulo, but it isn't invoked if it is call from another module(module maven). In pom.xml the dependencies are correct  

       

       

      example 1:

      ******************************************************************************

      module 1 - example SUCCESS

       

      public void saveNewEventHistory(@Observes HumanEventSummary pointHistory) { //my code }

       

       

      -----modulo 1

      @Inject

      private Event pointHistoryEvent;

       

      pointHistoryEvent.fire(new HumanEventSummary(ActionHistoryEnum.TASK_CREATED));

       

      ********************************************************************************

       

      example 2

      ******************************************************************************

      -----module 1 - example NOT INVOKED

       

      public void saveNewEventHistory(@Observes HumanEventSummary pointHistory) { //my code }

       

       

      -----modulo 2

      @Inject

      private Event pointHistoryEvent;

       

      pointHistoryEvent.fire(new HumanEventSummary(ActionHistoryEnum.TASK_CREATED));

       

      ********************************************************************************

       

      Thanks