Flex and JMS: Portfolio Viewer (Updated for Flex 2 GA)

Flex and JMS: Portfolio Viewer (Updated for Flex 2 GA)

As you already know, Flex 2 is now available. So, it’s time to post the upgraded version of some of the demos I built during the beta… starting with the portfolio viewer which had generated some good feedback.

portfolio.jpg

The portfolio viewer is an example of a real time market data application. It uses the Flex Data Services to push data to the client. At the server-side, a Java application publishes a data feed to a JMS topic. The Flex client subscribes to that topic and displays the data in a DataGrid and in a Line Chart that are both updated in real time. Read my original post here.

  • Run the application (NOTE: Since my host doesn’t provide JMS hosting, this version simulates data at the client-side). View Source is enabled: right click the application and select View Source to look at the source code.
  • Download the full JMS version of the application (Flex code + Java code). This version requires the Flex Data Services. See the included readme.txt file for deployment instructions. If you just want to demonstrate the concept without installing FDS, run portfolio.mxml. For the full version, run portfoliojms.mxml.

If you tried the application during the beta, make sure you check out this version which includes some nice performance improvements.

UPDATE (1/12/2007): I put together a Tomcat-based Test Drive Server that includes an improved version of this sample running out-of-the box. Read this post for more info. The improved version uses the Java API directly (no JMS), and uses subtopics to allow users to subscribe to the stocks they are interested in.

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • LinkedIn
  • StumbleUpon
  • Twitter
This entry was posted in Flex. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

84 Comments

  1. Posted October 4, 2007 at 9:58 am | Permalink

    Hi Christophe,
    I have been trying to connect to a WebLogic JMS Queue using Adobe Flex 2.0.1 and Adobe Livecycle Data Services. I am able to connect to a WebLogic Topic without any problem. However, for some reason, flex is not able to get messages from a WebLogic JMS Queue. I have gone through the documentation (http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=messaging_config_103_08.html). The documentation is also light on JMS Queues.

    Do I have to do anything different from connecting to a Topic to connect to a Queue?

  2. Posted October 23, 2007 at 2:21 pm | Permalink
  3. Posted October 23, 2007 at 7:31 pm | Permalink

    enterprise rent a car ajaccio
    enterprise rent a car ajaccio

  4. Posted October 26, 2007 at 7:53 pm | Permalink
  5. Posted November 10, 2007 at 4:53 pm | Permalink

    surf city north carolina rental
    surf city north carolina rental

  6. Posted November 16, 2007 at 4:28 pm | Permalink

    aw
    aw

  7. Posted December 6, 2007 at 3:50 pm | Permalink

    Good site!

  8. Posted February 5, 2008 at 12:16 pm | Permalink

    Thanks to Oprah, Obama camp claims biggest crowd yet

  9. Posted February 5, 2008 at 12:18 pm | Permalink

    Lafarge to buy Orascom Cement for $12.8 bln link

  10. Posted February 12, 2008 at 11:11 am | Permalink

    nice posts.your blog is very informative.

  11. Posted February 17, 2008 at 5:53 am | Permalink

    I need lot of free porn video, sexy girls fucking video / movies clips for mobile . 2 to 5 minutes downloadable clips. it will be full free ..

  12. Posted May 28, 2008 at 9:00 pm | Permalink

    Hello webmaster, very nice site here, great work!
    TomasKell

  13. Posted July 9, 2008 at 11:22 pm | Permalink

    hi.im danial

  14. Crystal
    Posted July 30, 2008 at 10:34 pm | Permalink

    Hi,
    I’m Crystal. I’m new in Flex and BlazeDS technology. Messaging is quite interesting. I would like to run the example you given. But I need some information from you.
    To run the portfolio, it require a JRun integrated server. Where I can get it??
    Or if I already have JRun in my computer, I have to configure the JMS topic (DashboardFeed) with a JNDI name of jms/topic/flex/dashboard_feed in the jrun-resources.xml right?? Can you give me the details inside the and tags??
    The details have to include inside the existing tag or create a new tag ?

    Looking forward to your help. Thank you and advanced.

    =Crystal=

  15. Posted August 22, 2008 at 5:06 pm | Permalink

    been recently. unremarkable My completely life’s …

  16. Posted August 22, 2008 at 5:07 pm | Permalink

    Thanks ;)

  17. Posted August 22, 2008 at 5:07 pm | Permalink

    Codec video. Codec. Codec and format comparison. 640 x 480 codec. 123 codec. Winamp wma codec….

  18. Posted August 28, 2008 at 10:39 pm | Permalink

    thanks you

  19. Posted August 28, 2008 at 10:39 pm | Permalink

    great working thank you

  20. Posted August 28, 2008 at 10:40 pm | Permalink

    very nice site here, great work

  21. Vicky
    Posted August 30, 2008 at 10:09 am | Permalink

    Hi

    Can we make this application to use Webservices for realtime update? My requirement is to show Market Depth (Best 5 Bids and Best 5 Offers). Can you give me your email address to contact?

    Thanks
    Vicky

  22. Posted September 5, 2008 at 7:55 pm | Permalink

    very nice site here
    thank you

  23. Posted September 9, 2008 at 6:08 pm | Permalink

    Thanks sir coenraets

  24. Posted November 20, 2008 at 9:18 pm | Permalink

    [...] :: Is2 Quickbooks Web Client :: More info Christophe Coenraets :: Flex and JMS: Portfolio Viewer :: More info Christophe Coenraets :: Google Maps Collaboration using Flex, Flash Media Server and AJAX Coker [...]

  25. Posted July 16, 2009 at 12:26 pm | Permalink

    Hi, I can’t understand how to add your site in my rss reader. Can you help me, please :)

  26. Posted July 19, 2009 at 2:55 pm | Permalink

    Hi there, I found your blog via Google while searching for sites about tennis and your post looks very interesting for me.

  27. Posted July 21, 2009 at 5:31 pm | Permalink

    Hi, I can’t understand how to add your site in my rss reader. Can you help me, please :)

  28. Posted September 19, 2009 at 4:51 am | Permalink

    really good job Web sitesi

  29. Posted October 10, 2009 at 1:49 pm | Permalink

    Lol, you made my day with this.

  30. Posted October 14, 2009 at 5:40 pm | Permalink

    And I t hj

  31. Posted November 14, 2009 at 4:21 am | Permalink

    thanks for info…

  32. Posted November 26, 2009 at 11:55 am | Permalink

    thankss soo muuchhhh

  33. Posted November 26, 2009 at 11:56 am | Permalink

    profesyonel fotoğraf çekimleri hakkında detaylı bilgi

  34. Posted August 8, 2010 at 7:31 am | Permalink

    Thanks to Oprah, Obama camp claims biggest crowd yet

23 Trackbacks

  1. By pitoouogm on August 6, 2006 at 8:24 pm

    onipvvbqm…

    hmednpa wizxzqkk ysbzvogvs…

  2. None…

    None…

  3. By Vorbis codec. on July 19, 2008 at 8:39 pm

    Dolby ac3 2000 codec….

    Codec video. Codec. Codec and format comparison. 640 x 480 codec. 123 codec. Winamp wma codec….

  4. [...] Coenraets Flex and JMS: Portfolio Viewer (LCDS jRun) 30 Minutes Flex Test-Drive for Java Developers [...]

  5. By RIA « Panduramesh’s Weblog on September 11, 2008 at 7:37 am

    [...] Christophe Coenraets :: Flex and JMS: Portfolio Viewer :: More info [...]

  6. By flex info « Panduramesh’s Weblog on September 19, 2008 at 6:35 am

    [...] :: Is2 Quickbooks Web Client :: More info Christophe Coenraets :: Flex and JMS: Portfolio Viewer :: More info Christophe Coenraets :: Google Maps Collaboration using Flex, Flash Media Server and AJAX Coker [...]

  7. By Flex Favourites « Panduramesh’s Weblog on September 19, 2008 at 7:20 am

    [...] :: Amazon/Library mashup :: More info · Christophe Coenraets :: Flex and JMS: Portfolio Viewer :: More info · Christophe Coenraets :: Google Maps Collaboration using Flex, Flash Media Server and Ajax · [...]

  8. By Flex with Java « anil4it on September 30, 2008 at 7:17 am

    [...] :: Installing FDS with JBoss and IIS JMS Christophe Coenraets :: Flex and JMS: Portfolio Viewer :: More info Jove Shi :: Use Flex Message Service with JBoss JRun Jared Rypka-Hauer :: Get Flex to Use the JRun [...]

  9. By anil4it on September 30, 2008 at 7:24 am

    [...] :: Is2 Quickbooks Web Client :: More info Christophe Coenraets :: Flex and JMS: Portfolio Viewer :: More info Christophe Coenraets :: Google Maps Collaboration using Flex, Flash Media Server and AJAX Coker [...]

  10. By Flex with java « Rameshgoud’s Flex Weblog on October 3, 2008 at 6:05 am

    [...] :: Installing FDS with JBoss and IIS JMS Christophe Coenraets :: Flex and JMS: Portfolio Viewer :: More info Jove Shi :: Use Flex Message Service with JBoss JRun Jared Rypka-Hauer :: Get Flex to Use the JRun [...]

  11. By It’s all about RIA on October 13, 2008 at 11:36 pm

    [...] Christophe Coenraets :: Flex and JMS: Portfolio Viewer :: More info [...]

  12. By Flex with Java « It’s all about RIA on October 14, 2008 at 12:09 am

    [...] Christophe Coenraets :: Flex and JMS: Portfolio Viewer :: More info [...]

  13. By FLEX RIA « welcome nandhu on October 22, 2008 at 10:39 pm

    [...] Christophe Coenraets :: Flex and JMS: Portfolio Viewer :: More info [...]

  14. By Adobe Flex With Java « welcome nandhu on October 22, 2008 at 10:52 pm

    [...] Christophe Coenraets :: Flex and JMS: Portfolio Viewer :: More info [...]

  15. By Flex Favourites « welcome nandhu on October 22, 2008 at 10:54 pm

    [...] · Christophe Coenraets :: Flex and JMS: Portfolio Viewer :: More info [...]

  16. By Flex Favourites « Rameshgoud’s Flex Weblog on October 25, 2008 at 6:13 am

    [...] :: Amazon/Library mashup :: More info · Christophe Coenraets :: Flex and JMS: Portfolio Viewer :: More info · Christophe Coenraets :: Google Maps Collaboration using Flex, Flash Media Server and Ajax · [...]

  17. By Flex Favourites « Adiflex’s Blog on October 25, 2008 at 6:13 am

    [...] :: Amazon/Library mashup :: More info · Christophe Coenraets :: Flex and JMS: Portfolio Viewer :: More info · Christophe Coenraets :: Google Maps Collaboration using Flex, Flash Media Server and Ajax · [...]

  18. By Flex with java « Adiflex’s Blog on October 25, 2008 at 6:14 am

    [...] :: Installing FDS with JBoss and IIS JMS Christophe Coenraets :: Flex and JMS: Portfolio Viewer :: More info Jove Shi :: Use Flex Message Service with JBoss JRun Jared Rypka-Hauer :: Get Flex to Use the JRun [...]

  19. By flex comp « Adiflex’s Blog on October 25, 2008 at 6:16 am

    [...] :: Is2 Quickbooks Web Client :: More info Christophe Coenraets :: Flex and JMS: Portfolio Viewer :: More info Christophe Coenraets :: Google Maps Collaboration using Flex, Flash Media Server and AJAX Coker [...]

  20. By flex comp « Rameshgoud’s Flex Weblog on October 25, 2008 at 6:16 am

    [...] :: Is2 Quickbooks Web Client :: More info Christophe Coenraets :: Flex and JMS: Portfolio Viewer :: More info Christophe Coenraets :: Google Maps Collaboration using Flex, Flash Media Server and AJAX Coker [...]

  21. By RIA « SrikanthCreative Mind’s Weblog on October 27, 2008 at 7:15 am

    [...] Christophe Coenraets :: Flex and JMS: Portfolio Viewer :: More info [...]

  22. By dashboards « Adiflex’s Blog on October 29, 2008 at 9:34 am

    [...] Christophe Coenraets :: Flex and JMS: Portfolio Viewer :: More info [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>