5 Replies Latest reply on Aug 9, 2008 7:43 PM by Pete Muir

    FacesMessage does not not display my message

    Fleury Ludovic Newbie


      I'm calling an asynchronous method and I would like to notify the client that the method has ended by displaying a message on the
      screen. The problem is that the message is not displayed.
      I'm using JMS with a message-driven bean and a stateful bean :

      @MessageDriven(activationConfig = {
                @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
                @ActivationConfigProperty(propertyName="destination", propertyValue="queue/pQueue")})
      public class ProcessMessageListener implements MessageListener {
           public void onMessage(Message m) {
                try {
                     FacesMessages.instance().add("message id = " + m.getJMSMessageID()); //THIS MESSAGE IS NOT DISPLAYED 
                } catch (JMSException e) {
                     // TODO Auto-generated catch block
      public class Resource implements IResource, Serializable {
            private transient QueueSender queueSender; 
            private transient QueueSession queueSession;
           public void delete() {
                     queueSender.send( queueSession.createTextMessage("Resource has been deleted"));
                  catch (Exception ex)
                     throw new RuntimeException(ex);
      public interface IResource {
           void delete();
           void destroy();

      Thank you for your help.


      Using seam-1.2.1-GA