Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Messaging - Server-side sample

    I looked at the Messaging samples included in 2.5p (SimpleChat & StockQuote), but they primarily focus on the client side.

    There is no clear example of server side programming.

    For instance, it would be great if the StockQuote sample generated prices and pushed them to the client.

    I've been using Custom DataSources (a great advantage of SmartGWT) and would love to see how to integrate the RTM functionality into them.

    I am also trying to implement the equivalent of a 'tail' function so that my webpage follows the last lines of my log
    Last edited by evanross; 22 Mar 2012, 07:49.

    #2
    Revisit the docs and source:

    1. the StockQuote example does indeed generate updates and push them and the source code is shown in the sample

    2. multiple-server deployments of Messaging typically use JMS, so there's nothing further to show in terms of server-side code because you just use JMS

    However note, on the public wiki (wiki.smartclient.com) there are a few examples of the *configuration* needed to set up JMS/Messaging on various platforms (JBoss, ActiveMQ, etc).

    Comment


      #3
      I'm getting: [ERROR] [strategy] - 14:34:08.477:MUP7:WARN:Log:Attempt to use Messaging APIs without the optional Realtime Messaging module. Verify that your license includes this optional module and that you have included the necessary client and server-side components in your project.

      I've been going through the forum and docs for a hint about what's wrong with my runtime config, but no luck so far.

      Comment


        #4
        Well, it appears from the message that you have not purchased the Real-Time Messaging module, which is optional. Once you have it, or if you download the Eval to try it out, the instructions for setting it up are in the OptionalModules overview, which is linked from the Messaging class doc among other places.

        Comment


          #5
          I've purchased the license (for both power and messaging) and downloaded the latest 2.5p build (and the messaging build).

          I've gone through the Forum, the Wiki, the Messaging QuickRef and the EE.Messaging javadoc, but there doesn't seem to be anything about this.

          There's the line in the javadoc about inherting RealtimeMessaging (which I assume means adding: <inherits name='com.smartgwt.RealtimeMessaging' /> to my .gwt.xml file.

          Is a license file required?

          =================

          I located this problem. The MessagingServlet wasn't defined in my web.xml. You might want to mention that in the documentation.
          Last edited by evanross; 2 Apr 2012, 16:15.

          Comment


            #6
            No license file is required. The <inherit> tag (which is from the Optional Modules doc we mentioned) is what's needed in addition to the server-side .jar install.

            Run a GWT compile (this is potentially needed anytime .gwt.xml is changed) and, if that doesn't correct it, look at Firebug's "Net" panel (or any similar tool) to verify the ISC_RealtimeMessaging.js is being loaded successfully.

            Comment

            Working...
            X