Java Virtal Machine.net

[ News ] rss

March 12, 2010

JavaOne 2010 Mobility Track Session and BOF Themes. Once again I'll be acting as the Mobility track for JavaOne 2010. The call for papers closes Sunday at 11:59 PDT. With such a limit time left the tracks marketing team has put together the following themes for this year. Java + Web Com...

More »

March 11, 2010

SOA and ITIL. We're doing SOA here at UCLA Health System. That means we're performing data reuse, developing and integrating components, ensuring interoperability and recognizing a host of standards, like HL7 and SOAP. With clinical applications sittin...

More »

March/2010
SunMonTueWedThuFriSat
 1 2 3 4 56
7 8 9 10 11 12 13
14151617181920
21222324252627
28293031   

[ Archives News
for 'Java Technology' ]

home > news > java technology > writing comet applications using jruby and the atmosphere framework

Writing Comet Applications Using JRuby and the Atmosphere Framework

Writing Atmosphere's Comet based applications is simple. Imagine using JRuby instead of Java...it becomes really simple!. As with Scala, it is also possible to write Comet application with Atmosphere Framework using JRuby. A user of Atmosphere recently posted the famous chat application written using JRuby and an embedded instance of Jetty. I've decided to write the same application using the Atmosphere Spade Server, which build on top of Jersey and Grizzly (will soon support Netty and Jetty). The idea behind the Atmosphere Spade Server is to make it really simple to test and embed your Comet application. Note that any application written using the Atmosphere Spade Server is portable, e.g. it will also deploy into any Servlet Container like Tomcat, Glassfish, Weblogic etc. Before jumping into JRuby, let's just explore the Atmosphere Spade Server main class, AtmosphereSpadeServer: public static AtmosphereSpadeServer.build(String uri); Invoking that simple method will automatically creates, under the hood, a Grizzly Servlet Container instance ready to receive requests based on the URI entered AtmosphereSpadeServer.build("http://localhost:8080/") Next step is to add your Atmosphere POJO aka AtmosphereHandler (I recommend you read that post for more details about


Date: September, 10 2009
Url: http://www.java.net/blog/jfarcand/archive/2009/09/10/writing-comet-applications-using-jruby-and-atmosphere-framework


Others News

Leave a Reply

Name (required)
Mail (will not be published) (required)
Website
You don't see letters?

Enter the code shown above (required)


Related

    ©2002-2008Java-Virtual-Machine.net