Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-2281

When using incremental hot deploy Events are fired more than once

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.0.1.CR2
    • Component/s: Core
    • Labels:
      None
    • Environment:

      Mac OSX, Jboss 4.2.1

      Description

      When using incremental hot deploy (ie. WEB-INF/dev) an Event is fired as many times as it's been since you last did a full deploy. For instance, if I start up my server and cause an event to fire (eg. @RaiseEvent("hello") on a method of mine), do an incremental hot deploy, cause the event to fire again; Then I will get the event firing twice on the second fire, three times on the third etc. If I do a full undeploy/redeploy it 'resets' the number of times it fires and all is good.

      This doesn't affect regular deployment - only hot deployment.

      Reproduce by creating an observer as such:

      public class ObserveHello {

      @Observer("hello")
      public void printHello()

      { System.out.println("Hello Event has been observed"); }

      }

      public class SayHello {

      @RaiseEvent("hello")
      public void sayHello()

      { System.out.println("Raising Hello event"); }

      }

      Then it's just a matter of calling the sayHello() method. Seeing the event fired once. Changing something minor. Doing an incremental deploy. Calling the sayHello() method again. You should then see the event fired twice instead of the expected once.

      Cheers,

      Damian.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  pmuir Pete Muir
                  Reporter:
                  damianharvey Damian Harvey
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: