The complete notes to use Spring-Flex Addon (3)

Use STS sts-2.6.0.SR1 + Flash Builder 4.5

Be Noted: STS has to be 32 bit.

  • Install Flash Builder 4.5 (there is no plugin version now.)
  • Run C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\utilities\Adobe Flash Builder 4.5 Plug-in Utility.exe
  • Choose C:\springsource\sts-2.6.0.SR1 as Eclipse folder
Now open STS, now you should have Flash View.
  • Make sure 1.6 Java SDK as the default JRE
  • Make sure using Roo 1.1.1.RELEASE
  • New->Spring Roo project
  • Project name: election 2012, Top level package name: com.hempire
  • Maven support: Dependency management only
  • Click Finish
  • Open Roo Shell
  • persistence setup --provider HIBERNATE --database ORACLE --databaseName XE --userName practice_db --password secret
  • flex setup
  • entity --class ~.domain.Candidate --testAutomatically
  • field string name --notNull
  • flex remoting all --package ~.service
Open servers View, select SpringSource tc Server, right click, Add and Remove, add election2012 project.
start the server.
Select election2012 project, right click, Run As, Web Application. Application will open.