I want to connect Java and FLEX.
I have never used Java and also Java is not installed on my PC.
So From Installation of Java to Calling Java Method from FLEX and Receive the Result from Java to FLEX i need steps so any one help me to connect Java and FLEX.
I want to connect Java and FLEX. I have never used Java and also
Share
Go through the following steps. This will surely helpful to you…
1 Install JDK in your system
2 Copy apache tomcat server in your c drive
3 Set Environment Variable
(1) Variable Name : JAVA_HOME
Variable Value : C:\Program Files\Java\jdk1.7.0
(2) Variable Name : CATALINE_HOME
Variable Value : C:\apache-tomcat-6.0.35-windows-x86\apache-tomcat-6.0.35
4 Update the Path Environment Variable in Variable Value
Add tha fillowing Path
(1)C:\apache-tomcat-6.0.35-windows-x86\apache-tomcat-6.0.35\bin
(2)C:\Program Files\Java\jdk1.7.0\bin
5 Create a Blazeds folder in webapps folder and extract the blazeds.war file
6 Create a folder name example in C:\apache-tomcat-6.0.35-windows-x86\apache-tomcat-6.0.35\webapps\FlexJavaIntegration\WEB-INF\classes
7 Create a Java file in example folder content of java file is below
8 Complile the .java file in CMD
9 Go to folder C:\apache-tomcat-6.0.35-windows-x86\apache-tomcat-6.0.35\webapps\FlexJavaIntegration\WEB-INF\flex and edit the remoting-config.xml file and add the destination
10 Start Tomcat Server from CMD
Go to bin folder of Tomcat server folder
Run startup.bat file in cmd and start Tomcat server
check: “localhost:8080” URl in your browser
and if you want to shutdown the tomcat serve write follwing command in CMD
shutdown.bat
11 Create New Flex Application
Select Server Technology – J2EE
12 Click Next and Set Following Properties
13 The Remote Object Syntax is as follows
14 Now Call the Java Method as follows
15 You get result from java class file
NOTE : YOU NEED TO INSTALL THE BLAZEDS AND APACHE TOMCAT SERVER ON YOUR PC