Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 883271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:33:37+00:00 2026-05-15T12:33:37+00:00

There is a demo by IBM that shows how easy Reverse AJAX can be

  • 0

There is a demo by IBM that shows how easy Reverse AJAX can be used with DWR 2. On the other hand, Scala/LIFT comes with built-in Reverse AJAX capability.

  1. Question: Any experience if this works fine with Spring MVC?

  2. Question: If you’d start from scratch, what are the pros and cons for preferring Scala/LIFT over DWR/Spring MVC

  3. Question: In Scala/LIFT, is the security handling as sophisticated as in Spring Security?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T12:33:37+00:00Added an answer on May 15, 2026 at 12:33 pm

    Lift’s Comet Architecture which was selected by Novell to power their Pulse product after they evaluated a number of different technologies.

    Lift’s Comet implementation uses a single HTTP connection to poll for changes to an arbitrary number of components on the page. Each component has a version number. The long poll includes the version number and the component GUID. On the server side, a listener is attached to all of the GUIDs listed in the long poll requests. If any of the components has a higher version number (or the version number increases during the period of the long poll), the deltas (a set of JavaScript describing the change from each version) is sent to the client. The deltas are applied and the version number on the client is set to the highest version number for the change set.

    Lift integrates long polling with session management so that if a request comes into the same URL during a long poll that would cause connection starvation, the long poll is terminated to avoid connection starvation (some browsers have a maximum of 2 HTTP connections per named server, others have a max of 6). Lift also supports DNS wild-carded servers for long poll requests such that each tab in the browser can do long polling against a different DNS wildcarded server. This avoids the connection starvation issues.

    Lift dynamically detects the container the Servlet is running in and on Jetty 6 & 7 and (soon) Glassfish, Lift will use the platform’s “continuations” implementation to avoid using a thread during the long poll.

    Lift’s JavaScript can sit on top of jQuery and YUI (and could sit on top of Prototype/Scriptaculous as well.) The actual polling code includes back-off on connection failures and other “graceful” ways of dealing with transient connection failures.

    I’ve looked at Atmosphere, CometD, Akka (all JVM-oriented Comet technologies). None had (at the time I evaluated them) support for multiple components per page or connection starvation avoidance.

    Novell started from scratch and chose Lift to power Pulse for some very good reasons.

    In terms of security, Lift beats Spring + Spring Security hands down. See http://www.mail-archive.com/liftweb@googlegroups.com/msg13020.html

    Basically, Lift’s security is baked into your application. Lift apps are resistant to common problems (cross site scripting, replay attacks, cross site request forgeries) by default. Lift apps are resistant to parameter tampering by default. Lift’s sitemap defines site navigation and access control rules. This means you never have a link that someone can’t click on. You don’t need to have an external filter (e.g., Spring Security) that you have to configure independently from you app (whoops… moved a page, but forgot to make sure the Spring Security XML file was updated.)

    Oh… and if you don’t want to use a templating language, here’s a complete Lift Comet chat component:

    class Chat extends CometActor with CometListener {
      private var msgs: List[String] = Nil
    
      def registerWith = ChatServer
    
      override def lowPriority = {
        case m: List[String] => msgs = m; reRender(false)
      }
    
      def render = {
        <div>
        <ul>
        {
          msgs.reverse.map(m => <li>{m}</li>)
        }
        </ul>
        <lift:form>
        {
          SHtml.text("", s => ChatServer ! s)
        }
        <input type="submit" value="Chat"/>
        </lift:form>
        </div>
      }
    }
    

    And to insert this into a page: <lift:comet type="Chat"/>

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a legitimate 'generic' package name I can use to open-source some demo
In a simple demo web app using JSF 2 and Ajax, there is a
There is a tutorial video that introduces Spring MVC 3.0. In the demo-project they
There is a java program in the folder Downloads/jason/src/demo/de/l3s/jason/testfile.java I can compile it with
is there a demo for the FanBox? http://wiki.developers.facebook.com/index.php/Fan_Box I would like to include it
is there a way to rotate the Demo 1, Demo2 and Demo 3 headlines
Take a look at this example: http://www.extjs.com/deploy/dev/examples/multiselect/multiselect-demo.html On it, there are components rendered against
Is there a demo of jQuery based File Explorer or Manager, similar to Windows
My for loop is too long. As demo there is three for loops going
I want to use twitter with my app. is there any demo app available

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.