[JBoss Seam] - Still confuse on usage of page param, help please!
by gus888
Hi,
I reviewed the seamspace example and tried to understand how and when to use page parameter, but I still get confused. After I commented the following page parameter codes, I couldn't find any performance difference(including bookmarkable page). Anybody can tell me the purpose of using page param and when need to use it. Thank you so much in advance!
<page view-id="/comment.xhtml" login-required="true">
| <restrict/>
| <!--
| <param name="name" value="#{selectedMember.memberName}"/>
| <param name="blogId" value="#{selectedBlog.blogId}"/>
| -->
| <navigation from-action="#{blog.saveComment}">
| <redirect view-id="/blogentry.xhtml"/>
| </navigation>
| </page>and jsp link:<s:link view="/comment.seam" value="Add Comment" propagation="none">
| <f:param name="name" value="#{selectedMember.memberName}"/>
| <f:param name="blogId" value="#{selectedBlog.blogId}"/>
| </s:link>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121949#4121949
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121949
18 years, 6 months
[Messaging, JMS & JBossMQ] - Recover Exception after Rollback in JMS
by tpollak.ar
Hello, I have the following problem.
I'm using a JMS Queue and a MDB to process asynchronous operations. The MDB runs in a transaction environment, so that the operations are committed or rolled back automatically.
If the process raises an exception, being transactional, the JMS Message is redelivered automatically and the MDB flags the involved entities with an error state. However, I am unable to determine the Exception that caused the JMS Message to be redelivered. I need this, in order to store the error condition in the entities, so that the users can see this info.
I have tried setting the exception as a property in the JMS Message, but I get MessageNotWriteableException (makes sense).
Is there a way to achieve this? Either get the Exception that cause the JMS Message to be redelivered, or to attach some extra information to the JMS Message, so that it is available upon redelivery?
Thanks everybody for your help!
Tomas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121943#4121943
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121943
18 years, 6 months