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

Damian Harvey (JIRA) jira-events at lists.jboss.org
Wed Nov 21 06:49:19 EST 2007


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

Damian Harvey updated JBSEAM-2281:
----------------------------------

    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.

  was:
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.

Cheers,

Damian.


> 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
>         Environment: Mac OSX, Jboss 4.2.1
>            Reporter: Damian Harvey
>
> 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