开发者

Communication between EJB and Flash possible?

Is it possible to call my ejbs from Flash actionscript? If yes, can anybody give me any link or example to accomplish the same?

Also if my ejbs are returning List how will flash come to know about this class?

开发者_如何学编程

Thanks in advance :)


Under the EJB 3.1 standard, EJB methods can very easily be exposed as REST services that return JSON or XML data:

@GET
@Path("{orderid}/")
@Produces({"application/xml","application/json"})
public Order status(@PathParam("orderid") long orderId){
   return delivery.status(orderId);
}


You need a communication layer in between the two:

BlazeDS http://opensource.adobe.com/wiki/display/blazeds/BlazeDS/

or

GraniteDS http://www.graniteds.org/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜