This content has been marked as final.
Show 2 replies
-
1. Re: Asynchronous problem when call via Component.getInstance()
gregtk Nov 28, 2008 5:09 PM (in response to gregtk)I use JBoss SEAM 2.1
-
2. Re: Asynchronous problem when call via Component.getInstance()
matt.drees Nov 28, 2008 6:35 PM (in response to gregtk)I think the MethodContext is getting in your way (it's burned me before, too). So, when you call Component.getInstance("messageSender"), you're getting the unproxied version of messageSender. So effectively you are calling this.send(3000), which of course isn't right.
As a workaround, IIRC, you can do this: Component.getInstance("messageSender", ScopeType.EVENT)
Or you could move send() to another component.