工具准备:
Eclipse: http://www.eclipse.org/downloads/packages/release/galileo/sr2
Flash Builder Plugin: http://adobe.com/go/try_flashbuilder
Download BlazeDS: https://www.adobe.com/cfusion/entitlement/index.cfm?e=lc_blazeds
blazeds 入门练习:
http://mdzyuba.blogspot.com/2008/02/deploying-blazeds-to-weblogic-100.html
Spring BlazeDS Integration: http://s3.amazonaws.com/dist.springframework.org/release/FLEX/spring-flex-1.0.3.RELEASE-with-dependencies.zip
flex +blazeds
step1. 新建一个dynamic web project "blazeds"--> new tomcat server 。
step2. 右键点击import blazeds.war ,import会修改我们的web.xml文件加入blazeds的一些servlet ->MessageBrokerServlet 同时会加载blazeds的配置文件。
step3. 在server端新建service类com.blazeds.HelloService.java
step4. 在WEB-INF/flex/remote-config.xml里注册你的service--> com.blazeds.HelloService.java
<destination id="sayHello">
<properties>
<source>com.blazeds.HelloService</source>
<!-- <scope>application</scope>-->
</properties>
</destination>
step5. new a flex project "client"--> new a applicaton
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Script>
<![CDATA[
protected function button1_clickHandler(event:MouseEvent):void
{
remote.sayHello(input.text.toString());
}
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
<s:RemoteObject id="remote" destination="sayHello" />
</fx:Declarations>
<s:VGroup>
<s:Label id="showText" text="{remote.sayHello.lastResult}"/>
<s:TextInput id="input" />
<s:Button click="button1_clickHandler(event)" label="say" />
</s:VGroup>
</s:Application>
step6. 右击 client --> properties -->flex server 做一些配置
root folder : C:\tomcat\wtpwebapps\blazeds
root url : http://localhost:8400/blazeds
context root : /blazeds 点击 apply --> run
这时你会看到你的tomcat的相应的目录下多了一个文件夹,好了,现在可以运行你的flex应用了。
streaming channelhttp://jonsion.iteye.com/blog/854317
Flex + spring
Flex + spring + hibernate
分享到:
相关推荐
使用Flex Builder+MyEclipse搭建的Flex+Spring+Hibernate环境,写了一个简单的登录,可以实现前台到后台,后台回到前台的基本流程,懒着搭建环境的人可以直接部署运行。
flex 4.5+BlazseDS+Spring3+Hibernate3.3开发环境搭建
一步步搭建+PureMVC+Flex+BlazeDS+Spring+Hibernate
该文档描述了安装Flex,将FlashBulider嵌入到MyEclipse8.6中的安装过程,并且逐步将Flex+Spring+Hibernate结合的详细过程一一列出来,供大家参考
跟我一步步搭建 PureMVC+Flex+BlazeDS+Spring+Hibernate
跟我一步步搭建PureMVC+Flex+BlazeDS+Spring+Hibernate
一步一步讲解了PureMVC+Flex+BlazeDS+Spring+Hibernate的搭建,适合初学者参照
花了好几天,中间碰到了很多包冲突的问题。数据库是用MySQL,就做了个登录的功能。表结构可以自己看Account.hbm.xml映射文件。 Flex的版本是4.5 Spring的3.0 Hibernate3.3开发环境MyEclipse8.6.
JSF+Spring+JPA以我个人看来,应该说是Struts2+Spring+Hibernate的替代解决方案。 引入JPA去取代或者说包装或者说是升级Hibernate是为了符合JAVA EE的规范,达到ORM统一的结果。下次项目用EJB也好、用TOPLINK也好、...
Flex Builder3+MyEclipse8.5搭建Flex Spring Hibernate环境,做了一个部署的文档,没步骤都是详细截图的。过一会会上传搭建出来的环境。
适用于有spring,hibernate搭建有了解的并且知道flex开发的人员,只是基础的spring+hibernate+flex项目搭建,新手入门哦!
使用Flex Builder+MyEclipse搭建的Flex+Spring+Hibernate环境,写了一个简单的登录,可以实现前台到后台,后台回到前台的基本流程,完成用户管理系统的增删改查。
多框架搭建系统平台(采用annotation方式): Flex+Blazeds+Spring+Hibernate(Flex调用java查询后台数据) JSP+Struts+spring+Hibernate(完成用户登录) 共同搭建系统
hibernate3.2+spring2.5+flex3.0整合框架,自己搭建的,可供学习之用,该框架的搭建环境是在myeclipse6.5下,还有就是因为上传文件的大不限制,只好分两部分下,请见谅!
hibernate3.2+spring2.5+flex3.0整合框架,自己搭建的,可供学习之用,该框架的搭建环境是在myeclipse6.5下,还有就是因为上传文件的大不限制,只好分两部分下,请见谅!
运用flex pureMVC框架做页面构造,通过blazeDS连接flex,j2ee,后台搭建Spring3.0+Hibernate3.0作为基本框架。
讲解Flex+struts+spring+hibernate框架的搭建,其实是否使用struts得看工程的实际情况。Flex和struts都属于视图层,若整个项目都是使用flex做也没视图的话就可以舍弃struts,但是,大多数时候需要jsp与flex结合使用...
4.2 开发环境的搭建 54 4.3 测试目的 55 4.4 测试方法 55 4.5 测试实例 55 4.5.1 登录显示测试 55 4.5.2 文章详细显示测试 56 4.5.3 文章修改测试 57 4.5.4 文章删除测试 57 4.5.5 留言发布显示测试 57 4.5.6 留言...