]
Norman Richards updated JBSEAM-2281:
------------------------------------
Fix Version/s: 2.0.1.GA
(was: 2.0.1.CR1)
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
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: