Total Pageviews

2010/01/19

Setup BlazeDS on Tomcat with Flex Builder





2. unzip file and extract BlazeDS.war


3. Create a new "Dynamic Web Project" in Flex Builder. Called it "blazeds-server"





define your context root, it will has relationship with step5


Ater creation, you can see your blazeds-server project had been created.



4. Now go back to the folder where you had extracted blazeds.war and import the META-INF and WEB-INF folders from there to the "Webcontent" folder that eclipse had created in the project.



select file system

select all folders under blazeds


Just click "Yes to All" to overwrite all files



5. Open the services-config.xml file within WEB-INF/Flex folder and change entries








6. Now go back to the folder where you had extracted blazeds.war, set these jar files in WEB-INF/lib into your build path








7. Build your project, and deploy to tomcat.




Verify your setup by testing if the amf links are active . Paste the endpoint url you changed on services.xml onto your browser. something like this http://localhost:8080/flex/messagebroker/amf should return you a blank page and not a 404 or 500 error.



8. create a simple java class



9. define this java class into remoting-config.xml







10. NewProject-Flex-select J2ee in application server type.Unselect "Create combined flex/java src folder".Click next










11. Deselect the "Use default location for LCDS " and enter the following.
RootFolder :{youreclipseworkspace}\flex\WebContent\
Root URL:http://localhost:8080/flex/
Context_Root:flex/. Click finish






12. Create a simple mxml




13. Build all and restart the server if its neccessary. RIght click on your mxml and select "Run as Flex application".
Click on the button. You should be getting a pleasant "Hello Flex!" from your server setup :-)










2010/01/14

Plugin Flex Formatter in your Flex Builder


1. Go to download zip file from http://sourceforge.net/projects/flexformatter/

2. As you unzip it, you can find out three jar files

3. Navigate to Flex Builder's folder, copy the three jar files into plugin folder. Before you do it, please close your Flex Builder first.




4. Restart your Flex Builder

5. You will have five new formating-related buttons in your Flex Builder

Formating result

Or just right-click your mouse, then you can see its menu.

2010/01/13

Insall Flex SDK on Mac

1. go to download Flex SDK: http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3sdk
2. open terminal
3. Type in cd ~. Move to home directory
3. Type in sudo vi .bash_profile
4. Type in your root password

You might see a screen that looks like this

6. Type i for Insert

7. Hit Escape to stop editing
Type :wq (this will write the file and then quit) and hit enter

9. Close Terminal
10. Open up Terminal again
11. Type in echo $PATH to verify that the path has been saved.

12. type in mxmlc -help to verify

If you want to modify the path, just do this process again.
If you want to remove this path, just remove .bash_profile[rm .bash_profile]

Install debug version of flash player



If you do not install debug version of flash play, you will get this warning message in Flex Builder as you run debug mode


1. Go to http://www.adobe.com/support/flashplayer/downloads.html, choose suitable version to download

2. And install it, step by step





Finally, you can see the debug message in debug console

2009/12/19

How to change IBM WebSphere Business Modeler language settings

By default, the language used in the WebSphere® Business Modeler user interface and messages is determined by the locale setting on your computer.

If you have installed additional languages in your WebSphere Business Modeler package, you can change the WebSphere Business Modeler language by changing your computer locale setting.





If you want to change to English, you have to do these steps
1. Close WebSphere Business Modeler.

2. Navigate to the eclipse.ini file located in the WebSphere Business Modeler installation directory. For example, if you installed the files in your Program Files directory, the eclipse.ini file resides in the C:\Program Files\IBM\WBModeler61 directory.



3. Make a backup of the eclipse.ini file.

4. Open the eclipse.ini file in a text editor.


5. add the following line after -vmargs:
-Duser.language=en


6. Startup WebSphere Business Modeler.