[jboss-user] [JBoss Seam] - Re: Concerning nested conversation

antispart do-not-reply at jboss.com
Tue Nov 21 12:31:57 EST 2006


It looks like what's happening is that when an @End annotated method is encountered the deepest level (most nested) conversation gets killed, not necessarily the one started on the same SFSB.

So if I have 

public class A {
  | @Begin (nested=true)
  | selectA()
  | 
  | @End
  | deselectA()
  | }

public class B {
  | @Begin (nested=true)
  | selectB()
  | 
  | @End()
  | deselectB
  | }

public class C {
  | @Begin (nested=true)
  | selectC
  | 
  | @End
  | deselectC}
  | 

And I call 
selectA()
selectB()
selectC()
deselectB()

Only the last conversation is being killed (the one started in selectC().

Is there any way to specify that you want to kill the conversation started on the same SFSB (and therefore all nested conversation as well)? So, deselectB would kill the conversations started by selectB and selectC.  Also, deselectA would kill the conversations started by selectA, selectB, selectC.

The alternative is just to call deselectC from deselectB, but I think it'd be more clean for that to be handled transparently.

Thanks.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987644#3987644

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987644



More information about the jboss-user mailing list