1) First of all you'll need to download and deploy LiveCycle Data Services or BlazeDS on your application server.
2) Then download the Flex EJB factory from Adobe Exchange ( http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1089970) and add it to your Data Services.
3) Declare your session beans as destinations in remoting-config.xml
I remember having trouble to get it working on Glassfish so for Flex/EJB3 development I switched to JBoss. Maybe newer versions of Glassfish and Data Services will work together more easily.
After setting up the server-side part you invoke session beans just like any other RemoteObjects (see Flex docs).
Good luck :)
Thanks a lot for the information. I'll give it a try. Actually I'm using the last version of Glassfish (V2ur1), so I hope it will work as well as JBoss.
NOTE: The link to download the Flex EJB factory from Adobe Exchange is not correct, but I'll google it and find teh correct one: http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1089 970
So far Blaze-DS works ok with glasshfish,
I only found out that messaging was slower then using Tomcat.
Anybody has the same experience?
Hi Ries. Let us know if there are issues with GlassFish by sending email to USERS@glassfish.dev.java.net and we will work with you to make it work. Our goal is first to have Flex work well with GF, and then to convince Adobe to provide official support for it. - eduard/o
Hi, I also use the same design mode(Flex+BlazeDS+EJB3+GlassFish). But I get a trouble while test my program.
The following is the error message :
[RPC Fault faultString="error creating EJB org.server.Controller, error locating local resource org.server.Controller" faultCode="EJB.Invocation" faultDetail="error creating EJB org.server.Controller, error locating local resource org.server.Controller"]
Could you please give a suggest to correct this error ?
Thanks in advanced!