[jboss-user] [JBoss Seam] - Ending conversations in super class method.
pdpantages
do-not-reply at jboss.com
Tue Jan 16 01:32:18 EST 2007
Using Seam 1.1.0.GA
Hello Forum, This is, hopefully, an easy question:
When using @End to end a nested conversation, I found that the conversation was not ended when I annotated a method in a superclass. E.g. like so:
| public class Bean1 {
| .....
| @End
| public String apply() {
| doSomething();
| return "nonNullOutcome";
| }
| .....
| }
| public class Bean2 extends Bean1 {
| .....
| public String apply() {
| String s = super.apply();
| doSomething();
| return (s);
| }
| .....
| }
If I move the @End to the method in Bean2, it works as expected. My question is, is this the correct behaviour? The docs simply say that any method annotated with @End will end the conversation. ( The @End methods do not return null or throw exceptions in either case. ).
PdP
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002134#4002134
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002134
More information about the jboss-user
mailing list