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.

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.

Comments

97 Responses to “Flex and JMS: Portfolio Viewer (Updated for Flex 2 GA)”

  1. Sun on June 30th, 2006 8:36 am

    Hi,
    I am new to flex, this particular sample of yours has created very much interest in flex. My manager wants me look into flex and create proof of concept. We also have a similar application but we display metadata. I just wanted to convert our current application and show it him so that he can find the advantages of flex.

    I was going through your sample, i couldn’t find the flex jms client file. Can you direct me.

    Thank you

    Sun

  2. christophe on June 30th, 2006 8:51 am

    Sun,
    Download portfolio.zip. The JMS client is portfoliojms.mxml in that zip file.
    Christophe

  3. pitoouogm on August 6th, 2006 8:24 pm

    onipvvbqm…

    hmednpa wizxzqkk ysbzvogvs…

  4. Amit on August 11th, 2006 10:42 am

    Would Flex Messaging/JMS approach be an overkill for displaying market picture with real time feed? Some of my co-workers think that its better to use a webservice to display real time market picture. I don’t know how is it possible to display real time feeds using webservice (kind of new to this game). Is XMLSocket an option?

    Please advice.

  5. Varun Shetty on September 19th, 2006 2:39 am

    this is a brilliant application.
    i am trying to create something similar hope i get some good pointers from your code.

    thanks a ton

  6. Patrick Garner on October 25th, 2006 1:09 pm

    In the example (testdrive) application, when I make a request against it I get an empty Flash screen. I get a similar result when I make a request against the portfolio viewer sample (http://coenraets.org/blog/2006/06/flex-and-jms-portfolio-viewer-updated-for-flex-2-ga). It’s as though I don’t have the correct version of Flash client installed on my workstation. Help! Note that I develop in a Linux environment and therefore am unable to install the latest/greatest version of Flash.

  7. Jeroen van Vianen on October 30th, 2006 7:27 am

    Nice example, but do you have a working JMS powered version in Tomcat, preferably with ActiveMQ?

    In my own app I am able to connect to a JNDI ActiveMQ JMS broker, send JMS messages to it with a stand-alone Java app, also able to subscribe to the JMS Topic in MXML, but it seems the Topic FDS subscribes to is another one than the one I’m publishing to, so the messages I send server-side will not be shown on the client-side. It seems I’m unable to specify the correct Topic JNDI name. Any clue?

    Thanks,

    Jeroen

  8. Lucas on November 2nd, 2006 5:26 pm

    I’m new at flex and i’m currently freaking out because I can’t find a way to remove the grid lines from my flex charts. Any help would be welcome:)
    Thanks,
    Lucas

  9. FlexAbility » Blog Archive » Christophe Coenraets is coming to Boston! on November 10th, 2006 12:12 pm
  10. yqsong on November 20th, 2006 11:48 pm

    Nice example,
    I’m new at flex and i have a new question about this example.
    Hot to send messages from Server-Side Java Code with Subtopic?
    Thank you for reply.

  11. Pereira on November 21st, 2006 6:32 am

    Hei. I’ve based my self in this example to create a sparkline. I’ve also created a custom renderer (in AS) do add a label into a plotseries, my question is if it’s possible to pass to the renderer class some arguments, that not the datapoint that i’m rendering. In a few words, my questions are:

    1.how can i pass arguments to a renderer class?

    (public class MinValueLabeledRenderer extends UIComponent implements IDataRenderer)

    2.how can i set a renderer using AS code, without the need to use de itemRenderer=”bla.bla.blaRenderer” from MXML?

    Thans for reply.

  12. trish stratus porn on December 18th, 2006 3:23 am

    trish stratus porn

    http://myblog.es/trish-stratus

  13. Grayson Pierce on December 30th, 2006 3:08 pm

    Christophe,

    Very nice work!

    Any way of not spiking the CPU quite as much (on my machine it’s at 60% constantly)? other than the obvious of “slow down the data”

    GP

  14. anoyn on January 10th, 2007 2:16 pm

    The link inside the article does not work

    http://coenraets.com/viewarticle.jsp?articleId=102

  15. obocre on January 18th, 2007 4:18 pm

    The unit increment http://globocredit.info

  16. dron on February 13th, 2007 9:01 am

  17. Marsha on March 8th, 2007 3:42 am

    Nice page greetings to all in this guestbook!

  18. Shannon on March 9th, 2007 12:06 am

    Hi! Your site is very nice!

  19. link ekle on March 23rd, 2007 9:10 am

    In the example above, the page header and intro text prints. I’m trying to suppress that as well.

  20. Hdklfjsd on March 28th, 2007 9:57 am

  21. Clyde on March 30th, 2007 2:28 pm

    Hi there! Just couldn’t resist your guestbook! Please visit my homepage:

  22. Shirley on March 30th, 2007 2:28 pm

    I’m glad I found your site! It’s nice! Please also visit my site:

  23. Katrina on March 30th, 2007 2:28 pm

    Nice page greetings to all in this guestbook! Please visit my homepage too:

  24. robotraff on May 3rd, 2007 12:16 am

    Traffic – the current of visitors web-site.
    Robotraff.com is automatics selling system of traffic
    Only at us, You may choose country, categories and browsers version (for advanced). If you choose the traffic for buy then you must fill the order form at menu “Traffic panel”( You must resisted) and pay your order. (we accept more 15th electronic currency). After order is paid, you receive a special web links where you may watch a statistics of order. Customer, please pay attention minimal one order was been 1000 unique visitors (UV).
    Also You may view a detail information (menu Statistics on left) about the traffic.
    robotraff.com

  25. John on June 17th, 2007 9:23 am

    Z9daOC bhsdrjkvbfjksbhfsvkbdhfkv

  26. rxdrugsaaa on June 17th, 2007 2:01 pm

    Hi!
    Order soma, viagra, fioricet, tramadol, prozac, cialis,
    propecia at low price. No Prior Prescription Required!!
    US Based Pharmacy, US Licensed Doctors, Free Online
    Consultation. Order drugs online!!

  27. rxdrugsaab on June 17th, 2007 8:52 pm

    Hi!
    Order soma, viagra, fioricet, tramadol, prozac, cialis,
    propecia at low price. No Prior Prescription Required!!
    US Based Pharmacy, US Licensed Doctors, Free Online
    Consultation. Order drugs online!!

  28. goggle on June 23rd, 2007 10:32 pm

    Grande sito!!

  29. TestName on June 30th, 2007 2:18 pm

    Test myfunction comment

  30. xfsnqeevkn on July 6th, 2007 8:35 am

    Hello! Good Site! Thanks you! hfqfbghjfpq

  31. goldcoast buy soma on July 27th, 2007 9:04 pm

    perscription buy soma needed soma buy

  32. Senqakkk on July 27th, 2007 10:42 pm

    Thank you!
    san diego breast augmentation san diego breast augmentation

  33. Homer on August 6th, 2007 5:28 am

    haven’t much done I today. gotten ,

  34. Vince Marco on August 13th, 2007 9:00 am

    I’m interested in how you simulated the JMS messages on the client side. Any chance of a link to that code? Also, is there any way to code a Flex-based JMS client, without requiring the Flex Data Service?

  35. casino gambling guide on August 24th, 2007 10:40 pm

    Children in … fill in the nation of your choice … are living better

  36. jonnyoiu on August 29th, 2007 5:37 am

    Anyone tried nvest free money into real estate property?
    I guess investment into real estate property can be the best investment in your life. Real estate is good because it is like gold.

  37. Buy Online Soma showitempl on August 30th, 2007 4:39 pm

    Soma Buy online Online showitem Soma Online Buy

  38. Megan on September 2nd, 2007 9:03 am

    been recently. unremarkable My completely life’s ,

  39. Gerry on September 2nd, 2007 1:40 pm

    less happening or much these days. not More ,

  40. Daisy on September 2nd, 2007 6:01 pm

    Basically doing. worth seems nothing ,

  41. Ester on September 2nd, 2007 8:34 pm

    worth thinking Nothing about. seems ,

  42. Tegan on September 3rd, 2007 1:44 am

    Today was but total shrug. loss, a ,

  43. Belva on September 3rd, 2007 4:21 am

    been haven’t much. to up I ,

  44. Xenia on September 3rd, 2007 6:44 am

    mind my now. Not on right much ,

  45. Erick on September 3rd, 2007 11:54 am

    a was complete loss. Today ,

  46. Elvin on September 3rd, 2007 7:41 pm

    have just don’t say I to anything lately. ,

  47. Ilene on September 4th, 2007 5:03 am

    letting everything by. been just me I’ve pass ,

  48. Kqbjebob on September 5th, 2007 9:21 pm

    big pizza sausage trinity
    big pizza sausage trinity

  49. hiutopor on September 16th, 2007 7:32 am

    Hi all!

    Very interesting information! Thanks!

    Bye

  50. Vinyakok on September 16th, 2007 3:53 pm

    bigsausagepizza member
    bigsausagepizza member

  51. dralandex on September 27th, 2007 2:01 pm
  52. Gqraoxox on October 3rd, 2007 10:45 am

    nicotine valium vicodin marijuana ecstacy and alcohol
    nicotine valium vicodin marijuana ecstacy and alcohol

  53. Sudhansu Pati on October 4th, 2007 9:58 am

    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?

  54. alsjtydjsk on October 23rd, 2007 2:21 pm
  55. Denyixox on October 23rd, 2007 7:31 pm

    enterprise rent a car ajaccio
    enterprise rent a car ajaccio

  56. TumaturTew on October 26th, 2007 7:53 pm
  57. Tjpeyggg on November 10th, 2007 4:53 pm

    surf city north carolina rental
    surf city north carolina rental

  58. SelqUggg on November 16th, 2007 4:28 pm

    aw
    aw

  59. qwsoftvs on December 6th, 2007 3:50 pm

    Good site!

  60. uhsoftcd on February 5th, 2008 12:16 pm

    Thanks to Oprah, Obama camp claims biggest crowd yet

  61. rzsoftke on February 5th, 2008 12:18 pm

    Lafarge to buy Orascom Cement for $12.8 bln link

  62. secretboy on February 12th, 2008 11:11 am

    nice posts.your blog is very informative.

  63. Simon on February 17th, 2008 5:53 am

    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 ..

  64. Bill877572914','92796311billy@msn.com','','64.95.126.125','2008-03-12 17:18:09','2008-03-12 17:18:09','','0','lynx','comment','0','0'),('0', '', '', '', '', '2008-03-13 17:18:09', '2008-03-13 17:18:09', '', 'spam', '', 'comment', '0','0' ) /* on March 12th, 2008 3:18 am

    None…

    None…

  65. TomasKell on May 28th, 2008 9:00 pm

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

  66. salardivone on July 9th, 2008 11:22 pm

    hi.im danial

  67. Vorbis codec. on July 19th, 2008 8:39 pm

    Dolby ac3 2000 codec….

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

  68. Crystal on July 30th, 2008 10:34 pm

    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=

  69. [Tunkey] BlazeDS + JMS + ActiveMQ | Joshua Ostrom - riafan on August 1st, 2008 10:22 pm

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

  70. sohbet on August 22nd, 2008 5:06 pm

    been recently. unremarkable My completely life’s …

  71. chat on August 22nd, 2008 5:07 pm

    Thanks ;)

  72. çet on August 22nd, 2008 5:07 pm

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

  73. chat on August 28th, 2008 10:39 pm

    thanks you

  74. mirc on August 28th, 2008 10:39 pm

    great working thank you

  75. webmaster on August 28th, 2008 10:40 pm

    very nice site here, great work

  76. Vicky on August 30th, 2008 10:09 am

    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

  77. batman on September 5th, 2008 7:55 pm

    very nice site here
    thank you

  78. batman fatih lisesi on September 9th, 2008 6:08 pm

    Thanks sir coenraets

  79. RIA « Panduramesh’s Weblog on September 11th, 2008 7:37 am

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

  80. flex info « Panduramesh’s Weblog on September 19th, 2008 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 [...]

  81. Flex Favourites « Panduramesh’s Weblog on September 19th, 2008 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 · [...]

  82. Flex with Java « anil4it on September 30th, 2008 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 [...]

  83. anil4it on September 30th, 2008 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 [...]

  84. Flex with java « Rameshgoud’s Flex Weblog on October 3rd, 2008 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 [...]

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

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

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

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

  87. FLEX RIA « welcome nandhu on October 22nd, 2008 10:39 pm

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

  88. Adobe Flex With Java « welcome nandhu on October 22nd, 2008 10:52 pm

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

  89. Flex Favourites « welcome nandhu on October 22nd, 2008 10:54 pm

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

  90. Flex Favourites « Rameshgoud’s Flex Weblog on October 25th, 2008 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 · [...]

  91. Flex Favourites « Adiflex’s Blog on October 25th, 2008 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 · [...]

  92. Flex with java « Adiflex’s Blog on October 25th, 2008 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 [...]

  93. flex comp « Adiflex’s Blog on October 25th, 2008 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 [...]

  94. flex comp « Rameshgoud’s Flex Weblog on October 25th, 2008 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 [...]

  95. RIA « SrikanthCreative Mind’s Weblog on October 27th, 2008 7:15 am

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

  96. dashboards « Adiflex’s Blog on October 29th, 2008 9:34 am

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

  97. lapto battery on November 20th, 2008 9:18 pm

    [...] :: 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 [...]

Leave a Reply