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:
- An updated version of my 30 minutes Test drive for Java developers
- A brand new Flex Data Management Services tutorial
- Flex/Spring integration samples running “out-of-the-box”
- Flex/Hibernate integration samples running “out-of-the-box”
- Flex/JMS integration samples (JMS powered by ActiveMQ) running “out-of-the-box”
- A new version of my Real Time Market Data application with advanced messaging features: Java API (no JMS in this version), subtopics, etc.
- Collaboration Dashboard
Installation Instructions
- Proceed to the Test Drive Server download page
- 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.
- 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.
139 Comments
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.
anyone can you tell me please how to install it.
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?
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.
I’m new to Flex, presently i’m working on java
Please send me links or attachments for Flex and java flow of execution
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.
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?
thank you site admin
anyone can you tell me please how to install it
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
good nice post thank you
thank site
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.
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.
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)
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.
Thank you very much for everything
thanks of
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.
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..
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…………..
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..
thanks for all it is very nice blog
how can ı do java pic.
thanks very good admin are you
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..
http://coenraets.org/blog/2007/01/flex-test-drive-server-for-java-developers-tomcat-based/
thaks for admin wanderfıll blog like see
thaks for admin wanderfıll blog like see
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 :)
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
Thank you for the information your provide.
thanks admin very good…
Any tips to migrate Flex Test Drive Server to LCDS 2.6 ?
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
nice collection
thanks admin very good…
nice collection
An interesting approach to the topic, but I disagree.
19 Trackbacks
[...] 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: [...]
[...] 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! [...]
[...] 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. [...]
[...] Flex Test Drive Server for Java Developers (Tomcat-based) [...]
[...] (Note that for anyone curious about Flex Data Services I’d recommend starting with Christophe Coenraets’ excellent Test Drive) [...]
[...] 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. [...]
[...] 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! [...]
[...] 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. [...]
[...] 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. [...]
[...] these notes are taken from this tutorial (Christophe Coenraets):http://coenraets.org/blog/2007/01/flex-test-drive-server-for-java-developers-tomcat-based/ [...]
[...] 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. [...]
[...] Another cool thing from Christophe Coenraet’s blog is the Flex Test Drive Server For Java Developers (Tomcat based). [...]
[...] together a Tomcat-based Test Drive Server that includes these samples running out-of-the box. Read this post for more [...]
[...] entweder den BlazeDS oder den FDS-TOMCAT [...]
Rivotril….
What is rivotril. Rivotril. Rivotril mexico. Buy rivotril with same day delivery. Buy rivotril….
[...] 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 [...]
[...] Christophe Coenraets :: Flex Test Drive Server for Java Developers (Tomcat-based) [...]
[...] Flex Test Drive Server for Java Developers (Tomcat-based) [...]
[...] together a Tomcat-based Test Drive Server that includes these samples running out-of-the box. Read this post for more [...]