Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

About onMessage

885259Aug 29 2011 — edited Aug 30 2011
Hello,

I would like to know what happen if my application fail (lets suppose the computer break) before the onMessage() return (on a class that implement javax.jms.MessageListener). Suppose the acknowldge used is AUTO_ACKNOWLEDGE. What happen? The JMS Server was acknowledge or not?

Thank you for the attention.
This post has been answered by 883902 on Aug 29 2011
Jump to Answer

Comments

843844
Your method signature is wrong. It should be public String userEvent() which returns null.
But you would be better off using an ActionListener instead, so change the method signature to
public void userEvent(ActionEvent e)
and in the page
<a4j:support event="onchange" actionListener="#{ticketBeanHandler.userEvent}" reRender="likearg" immediate="true" />
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 27 2011
Added on Aug 29 2011
3 comments
189 views