This content has been marked as final.
Show 4 replies
-
1. Re: Observer issues - multiple calls + async
pmuir Nov 21, 2007 5:59 AM (in response to damianharvey)1) This sounds like a bug. If you can file a jira issue, preferably with an example and instructions to reproduce, we can take a look.
2) You can use Events.raiseAsynchronousEvent - but I guess this syntax@Asynchronous @Observer public void observe() { ...
is something we should support, so please raise an issue for this too. -
2. Re: Observer issues - multiple calls + async
damianharvey Nov 21, 2007 6:49 AM (in response to damianharvey)Thanks Pete. I'll give raiseAsynchronousEvent a whirl.
1. http://jira.jboss.org/jira/browse/JBSEAM-2281
2. http://jira.jboss.org/jira/browse/JBSEAM-2280
Cheers,
Damian. -
3. Re: Observer issues - multiple calls + async
damianharvey Nov 22, 2007 7:20 AM (in response to damianharvey)Issue #1 also seems to apply to Quartz jobs - ie. if I do a few hot deploys before a Quartz job is scheduled then it will run a number of times consecutively.
Cheers,
Damian. -
4. Re: Observer issues - multiple calls + async
damianharvey Nov 28, 2007 9:53 AM (in response to damianharvey)More interesting behviour around Issue #1. If you do multiple hot deploys you can end up with an error (which looks suspiciously like the error when you do the Async)
Caused by: java.lang.IllegalArgumentException: method not found: sayHelloBack for component: testObserver at org.jboss.seam.Component.callComponentMethod(Component.java:2105) at org.jboss.seam.core.Events.raiseEvent(Events.java:83)
Doing a full undeploy/reploy resolves this.
A bit frustrating until I figured that one out.
Cheers,
Damian.