Flex Test Drive Server for Java Developers (Tomcat-based)

Flex Test Drive Server for Java Developers (Tomcat-based)

I have been working on a Tomcat-based “Flex Test Drive Server”. The Test Drive Server is a minimal and ready-to-use version of Tomcat (currently version 5.5.20) in which the Flex Data Services (version 2.0.1) WAR file has already been deployed and configured along with a variety of tutorials and sample applications. It allows you to get up and running integrating Flex with Java back-ends in a matter of minutes. Download fds-tomcat.zip, expand the file, and run…

The Test Drive Server includes:

  1. An updated version of my 30 minutes Test drive for Java developers
  2. A brand new Flex Data Management Services tutorial
  3. Flex/Spring integration samples running “out-of-the-box”
  4. Flex/Hibernate integration samples running “out-of-the-box”
  5. Flex/JMS integration samples (JMS powered by ActiveMQ) running “out-of-the-box”
  6. A new version of my Real Time Market Data application with advanced messaging features: Java API (no JMS in this version), subtopics, etc.
  7. Collaboration Dashboard

Installation Instructions
  1. Proceed to the Test Drive Server download page
  2. Expand fds-tomcat.zip

    NOTE: The instructions in the documentation assume that you expand fds-tomcat in your root directory. You can expand fds-tomcat anywhere else. Just make sure you adjust the path in the samples and tutorial instructions accordingly.

  3. Open install.htm in the fds-tomcat directory for information on running the Test Drive Server.

Disclaimer: The Test Drive Server is currently not an officially supported product. I’ll of course do my best to answer your questions, and your feedback is very much appreciated. It is intended to allow Java Developers to quickly evaluate or/and get started with Flex in a Java environment.

ERRATA: On page 4 in the tutorial PDF: “On the Java Settings page, specify fdms-tomcat/classes as the Default output folder, and click Finish”. The name of the folder is incorrect: it should read: Specify “fds-tomcat/classes” as the Default output folder (The screen shot is correct).

More Info

The Flex Test Drive Server includes the following products, frameworks, and libraries (All these products are configured to work together “out-of-the-box” when you install the Test Drive Server) :

  • Tomcat 5.5.20
  • Flex Data Services (FDS 2.0.1)
  • JOTM (JTA implementation)

    The Flex Data Management Services leverage the Java Transaction API (JTA). Because
    Tomcat doesn’t provide a JTA implementation, the Test Drive Server includes JOTM (an open source implementation of the Java Transaction API). You don’t need JOTM if your application server implements the full Java EE stack.

  • ActiveMQ (JMS implementation)

    The Flex Data Services integrate with JMS (see integration examples in the Test Drive Server). Because Tomcat doesn’t provide a JMS implementation, we use ActiveMQ (an open-source JMS provider) as part of this Test Drive Server. You don’t need ActiveMQ if your application server implements the full Java EE stack, or if your application doesn’t use JMS.

  • Spring 2

    Flex integrates with the Spring framework through the Flex SpringFactory (see integration examples in the Test Drive Server). Spring 2 is part of the Flex Test Drive Server to demonstrate this Flex/Spring integration.

  • Hibernate 3.2

    Flex integrates with the Hibernate through the Flex HibernateAssembler(see integration examples in the Test Drive Server). Hibernate is part of the Flex Test Drive Server to demonstrate this Flex/Hibernate integration.

  • HSQLDB 1.8

    To allow you to run the tutorial “out-of-the-box” without setting up a database, the Test Drive server
    includes an HSQLDB database. HSQLDB is a lightweight Java RDBMS that is particularly well
    suited to run samples. hsqldb.jar (in [tomcat_root]\webapps\ROOT\WEB-INF\lib) includes both
    the RDBMS engine and the JDBC driver. The HSQLDB database server is automatically started as part of the Tomcat startup process.

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

137 Comments

  1. Kris
    Posted December 24, 2008 at 4:24 pm | Permalink

    Can you please seperate the spring examples from the zip. I’m trying to create a example myself but i cant get it to work.

  2. Posted December 29, 2008 at 7:40 pm | Permalink

    anyone can you tell me please how to install it.

  3. Posted January 7, 2009 at 12:51 pm | Permalink

    BUT when I ran multiple portfolio flex clients, each client would occasionally display clientID’s from the other flex clients!?!?!

    Shouldn’t each flex client only receive messages for it’s client ID? Or is this a bug?

  4. Posted January 7, 2009 at 12:57 pm | Permalink

    me about 20 minutes to get fds-tomcat running on OS/X Tiger, and running the JMS demo. What a nice way to dive into fds. Thanks a lot.

  5. shanker
    Posted February 3, 2009 at 3:24 am | Permalink

    I’m new to Flex, presently i’m working on java
    Please send me links or attachments for Flex and java flow of execution

  6. Posted March 1, 2009 at 7:36 pm | Permalink

    Hi Christophe,

    Thanks for a superb demonstration of Flex Data Services.

    We’re currently in the process of re-engineering one of our products and I’m looking at Flex as a candidate.

  7. Posted March 17, 2009 at 8:51 am | Permalink

    For instance, am I able to implement a feature where the user can drag a JPG from a browser window to the AIR program and have the AIR program display it?

  8. Posted June 22, 2009 at 8:26 am | Permalink

    thank you site admin

  9. Posted June 22, 2009 at 8:27 am | Permalink

    anyone can you tell me please how to install it

  10. Posted July 10, 2009 at 5:24 am | Permalink

    I am trying to use Flex with Spring. I have an API that returns a list of beans. How do I access the bean in my flex. Do you have any example?
    Thanks

  11. Posted August 5, 2009 at 5:07 am | Permalink

    good nice post thank you

  12. Posted August 5, 2009 at 5:07 am | Permalink

    thank site

  13. Posted August 11, 2009 at 12:30 pm | Permalink

    In the company I work for are planning to create a flash view to some portlets. I have read your article at Macromedia.
    The problem we have thought we could be facing is to pass a big amount of data to the swf that is used as a view.
    We have a portlet that shows news, it works basically this way:

    1-Retrieve the contents from Vignette Content Managment
    2-JSP page recieves the news objects and creates the HTML.

    So to implement the flash view we have thought about adding an XML version of the news to a flashvar and then the swf renders them.
    However we have found that the max size of a flashvar is 64K. So we think that the only way to achive this is to make the swf go trhough some servelet/webservice that returns to it the news in an XML format. That´s a problem since it involves much more work and maybe duplicated functionality, I mean in the portlet and on the servlet used to retrieve the news…
    Do you knpw some tutorial, example, best practices or something about doing this?

    Sorry for having posting it here but I didn´t find a better place.

  14. Christian
    Posted August 21, 2009 at 10:02 am | Permalink

    Hello folks, well i am a little confused about the use of Flex and java, this is my problem: My java application must read two .zip files from an online server. These classes will load and parse the data in a Thread and perform certain actions depending on such info. The problem occurs when my flex application calls the java method that queries such data. I need to WAIT until the loading has finished. Any ideas?
    Another doubt is if the Java classes are being compiled and transformed into some form of ActionScript classes.
    Maybe I’m lost in space, so please I need a light in the darkness, thank you.

  15. mariam
    Posted September 30, 2009 at 10:52 am | Permalink

    Hello

    I used testdrive with apach and resin but I get the following exception:
    500 Servlet Exception

    flex.messaging.LocalizedException: Unable to create a parser to load messaging
    configuration.
    at flex.messaging.config.ConfigurationManager.getMessagingConfiguration(ConfigurationManager.java:71)
    at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:90)
    at com.caucho.server.dispatch.ServletConfigImpl.createServletImpl(ServletConfigImpl.java:646)
    at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:587)
    at com.caucho.server.dispatch.ServletManager.init(ServletManager.java:154)
    at com.caucho.server.webapp.Application.start(Application.java:1654)
    at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
    at com.caucho.server.deploy.DeployController.restartImpl(DeployController.java:584)
    at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.request(StartAutoRedeployAutoStrategy.java:125)
    at com.caucho.server.deploy.DeployController.request(DeployController.java:554)
    at com.caucho.server.webapp.ApplicationContainer.getApplication(ApplicationContainer.java:885)
    at com.caucho.server.webapp.ApplicationContainer.buildInvocation(ApplicationContainer.java:725)
    at com.caucho.server.host.Host.buildInvocation(Host.java:459)
    at com.caucho.server.host.HostContainer.buildInvocation(HostContainer.java:353)
    at com.caucho.server.resin.ServletServer.buildInvocation(ServletServer.java:653)
    at com.caucho.server.dispatch.DispatchServer.buildInvocation(DispatchServer.java:198)
    at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:415)
    at com.caucho.server.port.TcpConnection.run(TcpConnection.java:514)
    at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:520)
    at com.caucho.util.ThreadPool.run(ThreadPool.java:442)
    at java.lang.Thread.run(Thread.java:619)

  16. Rohit kotecha
    Posted October 14, 2009 at 1:44 am | Permalink

    i have downloaded fds tomcat and i have demo application using flex data services. now i want to call methods of spring bean from flex client. in that i am geting confused how to configure in remote-config.xml. i am also using hibernate along with spring in back end.
    can you please provide some guide line?
    any help would be greatly appreciated.

  17. Posted November 4, 2009 at 3:56 am | Permalink

    Thank you very much for everything

  18. Posted November 4, 2009 at 1:00 pm | Permalink

    thanks of

  19. Posted November 20, 2009 at 8:47 am | Permalink

    i have downloaded fds tomcat and i have demo application using flex data services. now i want to call methods of spring bean from flex client. in that i am geting confused how to configure in remote-config.xml. i am also using hibernate along with spring in back end.
    can you please provide some guide line?
    any help would be greatly appreciated.

  20. Posted November 24, 2009 at 9:36 am | Permalink

    i have downloaded fds tomcat and i have demo application using flex data services. now i want to call methods of spring bean from flex client. in that i am geting confused how to configure in remote-config.xml. i am also using hibernate along with spring in back end.
    can you please provide some guide line?
    any help would be greatly appreciated..

  21. Posted November 30, 2009 at 7:40 am | Permalink

    i have downloaded fds tomcat and i have demo application using flex data services. now i want to call methods of spring bean from flex client. in that i am geting confused how to configure in remote-config.xml. i am also using hibernate along with spring in back end.
    can you please provide some guide line?
    any help would be greatly appreciated…………..

  22. Posted November 30, 2009 at 7:40 am | Permalink

    i have downloaded fds tomcat and i have demo application using flex data services. now i want to call methods of spring bean from flex client. in that i am geting confused how to configure in remote-config.xml. i am also using hibernate along with spring in back end.
    can you please provide some guide line?
    any help would be greatly appreciated..

  23. Posted December 7, 2009 at 11:16 am | Permalink

    thanks for all it is very nice blog

  24. Posted December 22, 2009 at 3:00 pm | Permalink

    how can ı do java pic.

  25. Posted December 25, 2009 at 6:03 am | Permalink

    thanks very good admin are you

  26. Posted December 29, 2009 at 5:53 am | Permalink

    i have downloaded fds tomcat and i have demo application using flex data services. now i want to call methods of spring bean from flex client. in that i am geting confused how to configure in remote-config.xml. i am also using hibernate along with spring in back end.
    can you please provide some guide line?
    any help would be greatly appreciated..

  27. sesli sohbet sesli
    Posted January 17, 2010 at 1:58 am | Permalink
  28. Posted January 17, 2010 at 2:02 pm | Permalink

    thaks for admin wanderfıll blog like see

  29. Posted January 18, 2010 at 2:22 am | Permalink

    thaks for admin wanderfıll blog like see

  30. Posted January 18, 2010 at 8:33 pm | Permalink

    i just wanted to thank you for this useful article and i’m glad to find this website. now i’m beginning to read your other articles. i hope we will live on well :)

  31. Posted February 10, 2010 at 2:23 pm | Permalink

    i fds tomcat ve i indirdiğiniz demo uygulama esnek veri servislerini kullanarak var. şimdi i flex istemciden bahar fasulye yöntemleri aramak istiyorum. bu i uzaktan config.xml nasıl yapılandırıldığını karıştı geting am. i da kış uykusuna yatmak sırt son bahar ile birlikte kullanıyorum.
    bazı rehber verir misiniz?
    herhangi bir yardım çok … … … … .. mutluluk duyacağız thank yOu Admin

  32. Posted April 8, 2010 at 10:23 pm | Permalink

    Thank you for the information your provide.

  33. Posted June 17, 2010 at 4:47 am | Permalink

    thanks admin very good…

  34. Posted June 25, 2010 at 8:21 am | Permalink

    Any tips to migrate Flex Test Drive Server to LCDS 2.6 ?

  35. Posted July 2, 2010 at 7:57 am | Permalink

    i have downloaded fds tomcat and i have demo application using flex data services. now i want to call methods of spring bean from flex client. in that i am geting confused how to configure in remote-config.xml. i am also using hibernate along with spring in back end.
    can you please provide some guide line

  36. Posted July 18, 2010 at 8:29 am | Permalink

    nice collection

  37. Posted July 27, 2010 at 2:24 pm | Permalink

    thanks admin very good…

19 Trackbacks

  1. [...] As part of the Flex Test Drive Server, I wrote a new Flex Data Management Services tutorial. The tutorial takes you through the full FDMS application development life cycle: Java assembler, destination, and client application. Additional topics include: [...]

  2. [...] FDS Examples With Tomcat By Christophe Coenraets Mr. Coenraets recently published a great tutorial on FDS with Tomcat that he named, “Flex Test Drive Server;” the article includes: 1. An updated version of my 30 minutes Test drive for Java developers 2. A brand new Flex Data Management Services tutorial 3. Flex/Spring integration samples running “out-of-the-box” 4. Flex/Hibernate integration samples running “out-of-the-box” 5. Flex/JMS integration samples (JMS powered by ActiveMQ) running “out-of-the-box” 6. A new version of my Real Time Market Data application with advanced messaging features: Java API (no JMS in this version), subtopics, etc. 7. Collaboration Dashboard And in another post, he announced a Flex Data Management tutorial that’s also included in the Flex Test Drive Server. Good stuff if you’re looking to get into FDS. Kudos to one of Adobe’s Flex Evangelists! [...]

  3. [...] Easily the best thing I stumbled across on the web yesterday was a post by Christophe Coenraets. Christophe has created what he calls a, “Flex Test Drive Server,” for Java developers. It is one zip file, that contains a Tomcat server, configured and installed with Christophe’s Java Flex tutorials. [...]

  4. [...] Flex Test Drive Server for Java Developers (Tomcat-based) [...]

  5. By William Wechtenhiser » Blog Archive » Hello! on February 6, 2007 at 9:48 pm

    [...] (Note that for anyone curious about Flex Data Services I’d recommend starting with Christophe Coenraets’ excellent Test Drive) [...]

  6. [...] Resulta que Carlos Visser, un compañero de trabajo, me pasó un link a un artículo de un tal Christophe Coenraets, el cual había montado un server tomcat con varios ejemplos en flex y su integración con Spring/Java, tutoriales y demás, para poder ver los ejemplos andando. Este ejemplo es impresionante, lo descomprimis en la unidad C:, ejecutas un bat y ya podes ver los ejemplos(con código fuente y todo!), incluso trae un motor de base de datos para el ejemplo. [...]

  7. [...] Of course anyone who has been doing this for a few years will be rightly suspicious about claims of magic layers that make problems for developers just go away. That’s okay – in your place I’d be just as suspicious. Take them for a test drive and see for yourself. I welcome your comments! [...]

  8. [...] As an example of an FDS-powered Apollo application, I created an Apollo version of my real time market data application available as part of the Flex Test Drive for Java Developers. [...]

  9. [...] Christophe Coenraets ha escrito una entrada en su blog donde explica cómo integrar Apollo y FDS, podeis ver la entrada Real Time Market Data using Apollo and Flex Data Services, donde crea una versión Apollo de una de sus aplicaciones ejemplo dentro su Flex Test Drive for Java Developers. [...]

  10. [...] these notes are taken from this tutorial (Christophe Coenraets):http://coenraets.org/blog/2007/01/flex-test-drive-server-for-java-developers-tomcat-based/ [...]

  11. [...] Our old web application was built using Spring and we needed to enable this in FDS too. Luckily we where not the first to do this, so we had a look a the Flex Test Drive Server for Java Developers created by Christophe Coenraets. Basically all you need to do is to create a SpringFactory class which you configure in FDS, all this is covered in detail by Christophe. You can also read our article on Using Flex Data Services with Spring and Hibernate for more details on how you setup FDS and Spring. [...]

  12. By Florecista’s Weblog on September 9, 2007 at 10:46 pm

    [...] Another cool thing from Christophe Coenraet’s blog is the Flex Test Drive Server For Java Developers (Tomcat based). [...]

  13. By WHAT IS FLEX? on May 5, 2008 at 8:06 am

    [...] together a Tomcat-based Test Drive Server that includes these samples running out-of-the box. Read this post for more [...]

  14. [...] entweder den BlazeDS oder den FDS-TOMCAT [...]

  15. By What is rivotril. on July 15, 2008 at 6:35 pm

    Rivotril….

    What is rivotril. Rivotril. Rivotril mexico. Buy rivotril with same day delivery. Buy rivotril….

  16. By Flex with java « Panduramesh’s Weblog on September 19, 2008 at 7:22 am

    [...] or server-side) code :: Introduces a SimpleJDBCAssembler FDMS adapter Christophe Coenraets :: Flex Test Drive Server for Java Developers (Tomcat-based) Daniel Harfleet :: Calling Java remote objects and handling results Daniel Harfleet :: Passing [...]

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

    [...] Christophe Coenraets :: Flex Test Drive Server for Java Developers (Tomcat-based) [...]

  18. By It’s all about RIA on October 14, 2008 at 1:24 am

    [...] Flex Test Drive Server for Java Developers (Tomcat-based) [...]

  19. By It’s all about RIA on October 14, 2008 at 2:38 am

    [...] together a Tomcat-based Test Drive Server that includes these samples running out-of-the box. Read this post for more [...]

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>