Expand my Community achievements bar.

Flex + Glassfish EJB3 stateless session bean

Avatar

Former Community Member
Hi, I'm new to Flex. We´re in the process of adopting a
front end web technology. In the Server side we have a JavaEE
Application with several EJB3 session beans deployed in Glassfish
V2ur1. I just wonder if someone could lead me to a sample flex
application that access stateless EJB3 session beans that return
Entity Beans. Which is the best approach? Could anybody share some
sample code with me? Thanks a lot.



My mail is dkdarkon@ono.com
6 Replies

Avatar

Employee
Hi,



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

Avatar

Former Community Member
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=1089970

Avatar

Employee
Sorry for the broken link.

Just go to Adobe Exchange (
http://www.adobe.com/cfusion/exchange)
and enter 'ejb' in the search field.

Avatar

Former Community Member
So far Blaze-DS works ok with glasshfish,

I only found out that messaging was slower then using Tomcat.



Anybody has the same experience?



Ries

Avatar

Former Community Member
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

Avatar

Level 1

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!