博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Flex与Java整合(endpoint的重要性)
阅读量:7249 次
发布时间:2019-06-29

本文共 1288 字,大约阅读时间需要 4 分钟。

Flex和Java 整合有几种方法,最常见的是:

一,Flex,java在一个项目中。

二,Flex,java分别在两个项目中。

第一种,直接在新建Flex项目中选择应用服务器,选择blazeDS即可。

注意要写上输出文件夹url.endpoint="messagebroker/amf" 写上相对路径即可。

第二种,分别新建Flex ,java 项目,blazeds.war项目中的WebConten/Web-Inf替代java项目下的web-inf。在remoting-config.xml下写上:

<destination id="hxh">  

       <properties>              <source>com.demo.hxh</source>          </properties>  
    </destination>   并布署为tomcat.

Flex项目中修改endpoint="/hxh/messagebroker/amf",并设置输出文件夹为java ,WebContent下的,输出文件夹url为java项目,如为http://localhost:8400/hxh

或者新建项目如一,在新建项目java把编译目录设为Flex-webcontent-classes下。

一般问题都错在设置上,endpoint是一个注意点。

关于endpoint:

public interface Endpointextends ManageableAn endpoint receives messages from clients and decodes them, then sends them on to a MessageBroker for routing to a service. The endpoint also encodes messages and delivers them to clients. Endpoints are specific to a message format and network transport, and are defined by the named URI path on which they are located.

在 <mx:RemoteObject/> 对象中指定Endpoint参数:

     1) 全路径:          endpoint="http://server:8080/HelloBlazeDS/messagebroker/amf" >      2) 基于contextRoot: endpoint="/HelloBlazeDS/messagebroker/amf" >      3) 基于当前路径:   endpoint="messagebroker/amf" >

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/bill1315/archive/2010/07/21/5751496.aspx

 

转载于:https://www.cnblogs.com/JFlex/archive/2012/07/16/2593214.html

你可能感兴趣的文章
立下“去O”Flag的AWS,悄悄修炼了哪些内功?
查看>>
Better Software East/DevOps East/Agile Dev East 2016大会上的教程介绍
查看>>
优酷在多模态内容理解上的研究及应用
查看>>
JavaScript学习笔记整理:对象篇
查看>>
GitHub的bug赏金计划升级:奖金提高到3万美元以上
查看>>
中国法院裁定:禁售部分型号苹果手机
查看>>
使用实体框架、Dapper和Chain的仓储模式实现策略
查看>>
HTTP/2推送之难,远超想象
查看>>
与Bob McWhirter的问答:WildFly Swarm更名为Thorntail项目
查看>>
新书问答:Agile Management
查看>>
在sublime中实现代码检测
查看>>
活在伟大的Scrum团队是什么感觉
查看>>
Swift 5进入发布倒计时
查看>>
一套代码称霸5大端口,移动金融应用还能这样开发?
查看>>
MIT开发Polaris,使网页载入加快34%
查看>>
微软对macOS和Linux开放量子开发工具集
查看>>
一份关于Angular的倡议清单
查看>>
没有估算,你仍然可以用这些决策策略
查看>>
通过调研开源基准测试集,解读大数据的应用现状和开源未来
查看>>
译文-调整G1收集器窍门
查看>>