Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-10883

PUSH doesn't work properly on Glassfish 3.1 (JMS issue I think)

    XMLWordPrintable

    Details

      Description

      When trying to make this PUSH example to work (http://in.relation.to/Bloggers/GettingStartedWithRichFaces40Push) on glassfish 3.1, I'm getting this error:

      javax.jms.JMSException: MQJMSRA_DC2001: Unsupported:setClientID():inACC=false:connectionId=6046697373872048384

      I think the problem comes from this line of code

      org.richfaces.application.push.impl.jms.MessagingContext.java
      //TODO - review
      try {
        //durable subscription requires ClientID to be set
        connection.setClientID(UUID.randomUUID().toString());
      } catch (IllegalStateException e) {
        //ignore - clientId has already been set
      }
      

      I builded richfaces 4 from scratch (only the richfaces-core-api and richfaces-core-impl) removing that line, and the error disapeared. I setted the ClientId using the create-jms-resource on glassfish admin console.

      Now, after that, the app "works" BUT, I don't get the notifications on the client side (web), I can only send messages to the irc and stuf, but don't see any change on the web app (I confirm this because I use another IRC client to see what happens).

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                nbelaevski Nick Belaevski
                Reporter:
                pablomartinez Pablo Martinez
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: