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/
精彩评论