I have built a small application with a stateful bean annotated with
@Conversational containing two methods:
| @Stateful
| @Name("serviceManagementBean")
| @Conversational(ifNotBegunOutcome = "AdminHomePage")
| @Interceptors(SeamInterceptor.class)
| public class ServiceManagementBean implements Serializable,
ServiceManagement {
| .....
|
| public String doSomething() {
| logger.info("doSomething");
| return null;
| }
| public String doSomethingElse() {
| logger.info("doSomethingElse. Ends conversation");
| return null;
| }
and invoked from a view using s:link
<s:link action="#{serviceManagementBean.doSomethingElse}"
| propagation="end">
| <h:outputText value="Do Something else (End
conversation)" />
| </s:link>
|
| <s:link action="#{serviceManagementBean.doSomething}">
| <h:outputText value="Do Something" />
| </s:link>
|
|
When invoking "Do Something else..." the conversation is ended (and I return to
same xhtml page). When I then execute "Do Something" it executes even though
one would expect the Conversational to prevent if from executing and to force
it to the ifNotBegunOutcome page.
Snippet from the log file:
| 17:40:02,043 INFO [ServiceManagementBean] doSomethingElse. Ends
conversation
| .
| .
| 17:40:18,414 INFO [ServiceManagementBean] doSomething
|
It might be a bug or possibly something in my environment preventing the
Conversational to do its job. Comments ?
Regards
L
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3937180#3937180
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3937180
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user