[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-2281) When using incremental hot deploy Events are fired more than once

Pete Muir (JIRA) jira-events at lists.jboss.org
Thu Jan 10 11:37:44 EST 2008

     [ http://jira.jboss.com/jira/browse/JBSEAM-2281?page=all ]

Pete Muir closed JBSEAM-2281.

    Resolution: Done

Fixed. Thanks for the bug report!

> When using incremental hot deploy Events are fired more than once
> -----------------------------------------------------------------
>                 Key: JBSEAM-2281
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2281
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: Core
>         Environment: Mac OSX, Jboss 4.2.1
>            Reporter: Damian Harvey
>         Assigned To: Pete Muir
>             Fix For: 2.0.1.GA
> 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.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list