Introduction to myeclipse + Flex + blzeds

Source: Internet
Author: User

Use the flex builder plug-in of myeclips to develop flex applicationsProgramOfArticle, Most of the introduction is not very detailed, there are many errors in the Development and configuration process, I will summarize the problems encountered.

Myeclipse + Flex + blzeds 1. Development Environment setup

I am using myeclipse6.5 + tomcat5.5 + blazeds + flex builder eclips plug-in. For details, go to the official website to download the file. First, I encountered a problem when installing flex builder, at that time, the flex builder beta2 version was downloaded. When the version was installed to the end, there was a problem and the installation progress could not be completed. The previous version was used and the installation was successful. If the installation was still unsuccessful, check whether it is affected by anti-virus software. Now the flex development environment has been set up.

Myeclipse + Flex + blzeds 2. Differences between blazeds and LCDs

LCDs (livecycle Data Service) was previously called FDS (Flex Data Service). It is a data service project based on Java (also with ColdFusion) backend, functions include ing Java objects to flex objects (including calling Java classes), rtmp (Real Time Message Protocol), proxy, server-side PDF, and so on, for more information, see the description in LCDs. You can download it for free after registering on the official website.

LCDs is actually paid, but it can also be used for free. It seems that the support for multiple CPUs is reduced. Of course there are some other data services, such as amfphp.

Of course, we can implement all the functions provided by LCDs by ourselves. Without leaving LCDs, flex cannot deal with the background, except for remoteobject, webserivce, and httpservice. LCDs provides more convenience and features.

Blazeds can be viewed as a simplified version of LCDs. It lacks the advanced features of the latter's Data Management Service. Currently, it does not support the rtmp (Real Time Message Protocol) protocol.

Myeclipse + Flex + blzeds 3. Start to get started.

1) create a flex project, file-> New-> flex project... Enter the wizard interface. Java source folder is used to store the root directory of the Java source code. You can define the directory name by yourself.

Click Next,

Content folder is actually the final compiled container directory, so the blazeds. War file will be published to the flex directory under the WEB-INF under that directory. At the same time, because the tutorial uses myeclipse, the default is to publish the content in webcontent. For automation, this is changed to webcontent.

Output Folder refers to the path for storing files such as SwF and HTML compiled by Flex, Which is changed to webcontent \ bin.

Click Next,

Main source folder is the root directory of flex source code, which is separated from Java source code.

The Output Folder URL is the Request Path for running and debugging during the development process. It has nothing to do with release and does not affect any paths you use in the program, but makes development convenient. Note: There is a bug in flexbuilder3. When creating a project, some custom attributes are not saved, but must be changed in the new project attributes.

Click fanish.

2) Add web project capabilities to the project.

Change the web root directory to webcontent. Cancel the check mark before create web. xml.

3) Modify project properties, right-click the project, and the Properties dialog box is displayed.

Modify flex build path-> out folder URL + "/bin"

This step is important to modify flex server-> context root (/flex project name. (Note: If you separate two projects, this refers to the name of your J2EE project, not the name of your flex project, because you are requesting data service in Java ), this parameter is used when flex requests LCDs.

Http: // {server. Name }:{ server. Port}/{context. Root}/messagebroker/AMF

If context root is wrong, it is never possible to request the LCDs service correctly.

4) Deploy the application and start the service.

Here are some brief introduction to myeclipse + Flex + blzeds. I hope it will be helpful for you to understand myeclipse + Flex + blzeds.

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.