Hello, 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 :)
Hello, 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 :)
You need a communication layer in between the two:
BlazeDS http://opensource.adobe.com/wiki/display/blazeds/BlazeDS/
or
GraniteDS http://www.graniteds.org/
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);
}