Configure flash remoting in J2EE environment

Source: Internet
Author: User

Statement: This translation is for your reference only. The ownership of this article belongs to webstudio (my friend's website )!
If you want to reprint it, please indicate the source. Thank you for your cooperation!

(1) In the J2EE environment, use tomact to configure flash remoting

Software required for this tutorial:
① J2sdk-1_4_2_06-windows-i586-p
② Jakarta-tomcat-5.0.19
③ Flash MX 2004

④ Macromedia Flash remoting for Flash MX 2004 ActionScript 2.0
Flashremoting_comp_as20-win-en.exe (16.39 MB)
Http://www.macromedia.com/software/flashremoting/downloads/components/

⑤ Flash remoting components ActionScript 1.0 for Flash MX 2004 and Flash MX Professional 2004
FlashRemotingComponents-win-en.exe (5.95 MB)
Http://www.macromedia.com/software/flashremoting/downloads/components/

6. Flash remoting MX.
Flash remoting for J2EE
Http://www.macromedia.com/cfusion/tdrc/index.cfm? Product = flash_remoting

1. Install JDK and tomact. For detailed steps, see flex1.5 installation tutorial in this forum.

2. Install Flash MX 2004 (I use the Chinese version. Pay attention to your version );

3. Install the flashremotingcomponents-win-en component. It will create an en folder under your Flash MX 2004 directory. This is because the Flash version I use is based on the Chinese version. Ignore it and continue!

4, install flashremoting_comp_as20-win-en components. Now, let's make some changes! Compare the files in the EN and zh_cn folders in Flash MX 2004 (because I use the Chinese version, so it is the folder name, the corresponding directory name copies all the contents in the en folder not available in zh_n. If none of the subdirectories exist, copy them! In this way, we can ensure that some remoting classes and methods are not found in the application (if you have better methods, you may wish to introduce them ).

5. Install flashremoting-Java-win-en. Of course, it is better to select all the web archive (WAR) with samples options selected during the installation process!

0 _ fcksavedurl = "this. SRC; If (image. width> 0 "_ fcksavedurl =" cfusion = "_ fcksavedurl =" src = "src =" _ fcksavedurl = "src ="/> Macromedia JRun 4
Http://www.macromedia.com/cfusion/tdrc/index.cfm? Product = JRun

1. Install jrun4 and set the user name and password during installation, as shown in:

0 _ fcksavedurl = "this. SRC; If (image. width> 0 "_ fcksavedurl =" src = "border =" _ fcksavedurl = "border ="/>

2. jrun4 has three service ports by default. You can use them. You can also create a service port, as shown in:

0 _ fcksavedurl = "this. SRC; If (image. width> 0 "_ fcksavedurl =" src = "border =" _ fcksavedurl = "border ="/>

3. After installation, log on to the console. The default service port is 8000, and http: // localhost: 8000 is the control platform. Click the create new server button (on the top line) and enter the server name, such as myremoting. jrun will automatically create the path to this server. Click create server, as shown below:

0 _ fcksavedurl = "this. SRC; If (image. width> 0 "_ fcksavedurl =" src = "border =" _ fcksavedurl = "border ="/>

4. The server will create a new port. If you are not satisfied, you can continue to modify the port, as shown below:

0 _ fcksavedurl = "this. SRC; If (image. width> 0 "_ fcksavedurl =" src = "border =" _ fcksavedurl = "border ="/>

5. Click Finish to create a new service and create a myremoting folder under the JRun servers directory, as shown below:

0 _ fcksavedurl = "this. SRC; If (image. width> 0 "_ fcksavedurl =" src = "border =" _ fcksavedurl = "border ="/>

6. Because JRun integrates the flash remoting gateway service, decompress the flashgateway-samples.war and name the folder flashgateway-samples, and then put the flashgateway-samples folder into the myremoting folder, start the myremoting service and type http: // localhost: 8101/flashgateway-samples/to start remoting! Start your remoting journey! :)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.