Archives for categorie "Cairngorm"

Cairngorm projects uses event regularly and most of them are asynchronous. In the case of working with data dependency events it’s necessary that the sequence of its dispatching and data is received was sequentially and, for that, Cairngorm have SequenceCommand class whom dispatch consecutive events.

You can implement standar solution with Adobe framework but Bjorn Schultheiss has developed ChainEvent class to a non intrusive solution. Following there is a example based in ChainEvent:


Source codeClick with the right button to obtain source code.

Made in Flex has a couple of examples very useful that I recommended.

  • Share/Bookmark
LCDS-Spring-Helloworld Project
Configuration example of a J2EE web application with LiveCycle, issues:

  • Start the database hsqldb with the init scripts startdb.bat (Windows) o startdb.sh (Unix) adapted to our enviroment pointed to hsqldb.jar (you can configure another database connection modifying jdbc.properties file)
  • Load the database with SQL scripts in db directory using build.xml Ant file (on project top directory).
  • Adjust hidden files .actionScriptProperties, .flexProperties of flex enviroment to our local configuration.
  • Adapt local web servers paths of the project in build.properties.
  • Configurate deploy properties of the project (url, port…)

LCDS-Spring-HelloWorld

  • Share/Bookmark

Vote at your favorite country.
¡Choose with your vote the most favorite country in the world!
- Click in the mark of the country.
- Add points to your favorite country to improve it in the ranking.
- Remove points to the other countries.

Technology:
- Flex-Cairngorm
- J2EE-Blazeds-Spring-Hibernate
- MySQL

Go to he game

  • Share/Bookmark

Cairngen requires Java 6 (JVM 1.6), but it’s possible to launch it with JVM version 1.5 following Ryan Phelan instructions in his “Running Cairngen on a Mac”.

Nevertheless, on mac intel 64 bit with JVM 1.6 there is an error loading 64-bit libraries.

- Cairngen Errors summary on Mac Intel 64 bit

  • Error with JVM 1.5: Unable to load a script engine manager (org.apache.bsf.BSFManager or javax.script.ScriptEngineManager)
  • Error with JVM 1.6: Unable to create javax script engine for javascript
  • Error with JVM 1.6 y librerías indicadas por Ryan Phelan: java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM

- Solution
Change to JVM 1.5 and follow indications of Ryan Phelan.

  • Share/Bookmark

CairngormTemplatesCairngormTemplates is a tool to generate a complete structure of Flex framework, Cairngorm, with basic configurations.
Aplication is developed on Java Swing and is compiled as a JAR executable compatible on systems with JRE.

Download CairngormTemplates

  • Share/Bookmark
Creative Commons License
This blog is under Creative Commons licence, unless indicated otherwise.
Special thanks to Mark James for the icon set used in this blog.