tags:

views:

42

answers:

2

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 :)

+1  A: 

You need a communication layer in between the two:

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

or

GraniteDS http://www.graniteds.org/

seanizer
+4  A: 

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);
}
Michael Borgwardt
wow, this is awesome
seanizer
great! exposing ejbs as restful web services.
Ankit Rathod