Using BlazeDS with AS2

A few months ago, the project I was working on came to a little dilemma.  The system was built using AS2 (not my decision of course), and was using a mix of web services(ws) and an XMLSocket to communicate.  The ws calls would be outgoing, and the XMLSocket would be incoming, that way the server could push any changes done on the back-end and the UI would then appropriately display the proper information.

Our dilemma came when the manager of the project then wanted the application to be accessed from behind any firewall as long as http requests are accepted behind that firewall (as in, a corporate firewall).  Since XMLSocket doesn’t do http request, it would of been filtered out and our system wouldn’t work at all.  While looking for the solution, we found BlazeDS, an open source solution from Adobe.  It’s a Java  library that let’s you do remoting and web messaging using various different protocols.   They have a pushing solution that works over port 80 with http request.  Perfect.

Read more…



Login After BlazeDS Session Timeout

While I was working on a Flex project, I noticed a weird little quirk.  We’re currently using BlazeDS to connect to the back-end and it keeps pushing new information to the front-end.  However, we have a session timeout set to 15 minutes for security purposes that needs to be handled on the front-end and then let them be able to re-login.

When the user tried to re-login using the consumer, it wouldn’t work.  No errors, no message, nothing.  A nice silent error; great.  There wasn’t a lot of documentation on this phenomenon and the internet didn’t seem to provide any solutions.

Read more…