Thursday, September 1, 2011

Migrating from Flex/J2EE to using Spring-Flex package in Eclipse

Moving from the Flex project nature added by the Flex Builder Plugin (Flex 3) to using a Spring based setup would mainly involve changing the jar files.

First delete the default set added by the Flex project nature.
cfgatewayadapter.jar
commons-codec-1.3.jar
commons-httpclient-3.0.1.jar
commons-logging.jar
flex-messaging-common.jar
flex-messaging-core.jar
flex-messaging-opt.jar
flex-messaging-proxy.jar
flex-messaging-remoting.jar
flex-rds-server.jar
xalan.jar

Then add the new set, in my case files that came with the "spring-flex-testdrive-spring3" generated by maven.

C:\>mvn -version
Apache Maven 3.0.3 (r1075438; 2011-02-28 23:01:09+0530)
Maven home: C:installations\apache-maven-3.0.3\bin\..
Java version: 1.6.0_14, vendor: Sun Microsystems Inc.
Java home: C:\Program Files\Java\jdk1.6.0_14\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"

C:\spring-flex-testdrive>mvn -install

Copy the files from C:\spring-flex-testdrive\testdrive\target\testdrive\WEB-INF\lib

Hope this note helped you convert your J2EE Flex project to a J2EE-SpringFlex project.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home