blazeds

What does BlazeDS Livecycle Data Services do, that something like PyAMF or RubyAMF not do?

I'm doing a tech review and looking at AMF integration with various backends (Rails, Python, Grails etc). Lots of options are out there, question is, what do the Adobe products do (BlazeDS etc) that something like RubyAMF / pyAMF don't? ...

How to set an HTTP header while using a Flex RemoteObject method ?

I am running blazeds on the server side. I would like to filter http requests using an http header. My goal is to send extra parameters to the server without changing the signatures of my blazeds services. On the client side, I am using Flex RemoteObject methods. With Flex WebService components, it is possible to set an http header us...

Flex best practices ?

I have the feeling that is easy to find samples, tutorials and simple examples on Flex. It seems harder to find tips and good practices based on real-life projects. Any tips on how to : How to write maintainable actionscript code How to ensure a clean separation of concern. Has anybody used an MVC framework such as cairngorm, puremvc o...

Flex - best strategy for keeping client data in synch with backend database?

In an Adobe flex applicaiton using BlazeDS AMF remoting, what is the best stategy for keeping the local data fresh and in synch with the backend database? In a typical web application, web pages refresh the view each time they are loaded, so the data in the view is never too old. In a Flex application, there is the tempation to load...

Graceful handling of server timeout in BlazeDS

I have a flex client that makes service calls to a tomcat server running BlazeDS. I would like to gracefully handle server session timeouts in this environment. I do have security constraints on the service, so the client authenticates against a remote object by initializing a ChannelSet based on the destination, and then logging in us...

BlazeDS vs. GraniteDS

Anyone have any experience evaluating BlazeDS and GraniteDS? I'm curious about which is better at integrating with Spring/Hibernate. ...

Sample Flex with Pojo on Server

I just started a new project and my boss wants us to change IDE from NetBeans to Eclipse, RichFaces to Flex. I have never worked with Eclipse and Flex before. Today I tried to make hello word with it on Eclipse but had no luck. Can some one post or give me link to Flex->BlazeDS->Pojo on Eclipse for Beginner (Dummy) :D Thanks Update: For...

How Can I get Remote Objects to return XML in E4X?

Hi there. I'm writing a Flex application that makes full use of BlazeDS to a Java server. I use Remote Objects a lot, but I've come across an instance where receiving XML is cleaner and faster than returning objects. Returning XML through BlazeDS is easy enough. I'm building up the XML with Dom4j on the Java and returning the root ...

Tomcat/BlazeDS/ActiveMQ disconnect problem

We are experiencing disconnects on our Tomcat/BlazeDS/ActiveMQ stack. Although our BlazeDS StreamingAMFChannel is configured with the default idle-timeout-minutes of 0, it seems to timeout after about 30 minutes of idle time (see log). The client does not do any requests during that time and we are also not pushing messages from the Acti...

Call Java functions in Flex

Right now I'm trying to understand how Flex works with Java (Flex -> BlazeDS -> Java). I tried to follow THIS tutorial and everything works fine, I just don't understand why do we need to call java function this way: <mx:Script> <![CDATA[ import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; //...

How do I use SendGatewayMessage to send a message to a Flex consumer?

I have a CFC that occasionally needs to send a message via LCDS/BlazeDS to multiple Flex apps that have a consumer setup. I'm having a hard time figuring out the specific steps to make this work. Using ColdFusion 8 and Flex 3. I know it's SendGatewayMessage but how do I configure? ...

BlazeDS authentication

I am confused about authentication with BlazeDS. Most of the few examples I have found for authentication and authorization in BlazeDS and consequently Java Servlets in general make use of HTTP basic and digest authentication and realms for authorization. These examples are very simplistic and involve XML files with the user credentials ...

What effect has open source BlazeDS had on the adoption rate of Adobe Flex?

Is there any reliable way to check statistics for this question? I'm skeptical whether measures like Google Trends really say much but I was thinking the job market for Flex jobs might be an indicator and the market seems healthy based on Indeed Trends. I thought adoption of Adobe Flex was relatively sluggish but what I'm hearing is th...

Error on deserialization of Array Collection in Flex: RangeError: Error #2006

I am getting this error during serialization: RangeError: Error #2006: The supplied index is out of bounds. The error occurs in AbstractMessage.as when it attempts to read input of timestamp. After that my fault handler gets this error: faultCode:Server.Acknowledge.Failed faultString:'Didn't receive an acknowledge messa...

EJB and FLEX

I'm working on a new application using EJB3 -> BlazeDS -> Flex. I can't find good example to see how to integrate EJB with BLAZEDS. Can someone give me some pointers on how to link them together. ...

How can I setup my BlazeDS implementation with Log4J?

Hi there. I'm writing a Flex app on top of a Java web application using BlazeDS. BlazeDS has logging inside of it, but I want to set it up to Use the same logging framework I have in my application. Is there a way to setup BlazeDS to use Log4J? Or am I stuck with the Flex logging stuff that's already baked into BlazeDS? ...

WebORB for Java or BlazeDS?

I'm in the beginning phases of a project that uses a flex front end with a java/glassfish back end. I'm curious which technology is better to connect the two, WebORB or BlazeDS. At first glance WebORB seems a little bit easier to deal with, but BlazeDS has a larger support community. ...

Suggestions for Stress Testing BlazeDS

We are removing our XSL-> HTML solution annd replacing it with a Flex UI for our userbase. One of the concerns is that the BlazeDS (amf endpoint, so streaming or polling) won't be able to handle the load as well as the EJB -> XML -> XSLT -> HTML stack. My theory is that it should perform better, but I need a way to statistically prove th...

BlazeDS and ArrayList of custom objects

I'm using BlazeDS to connect Flex with Java. I'm having trouble passing ArrayLists of custom objects from Flex to java. I have two objects, one is called Category, the other Section. A Category has an ArrayList of Section objects. I can send an ArrayList of Category objects back and forth between Flex and Java, the problem is when ...

Can't call EJB from FLEX (BlazeDS)

Right now I'm playing with Flex and Java integration and trying to access EJB3 methods by clicking Flex button but it's giving me null pointer error. Here is what I have in my code: [Controller:] public class homePageController { @EJB CategoryFacadeRemote categoryFacade; public String populateDBWithXMLData(){ Ar...