DZone Podcast about Adobe AIR, Flex, and Java

I recently recorded a podcast with James Sugrue for DZone. In the podcast we talk about why Flex and Adobe AIR are relevant to Java developers. You can either listen to the podcast or read transcribed text. It’s good to see DZone doing a lot more Flex related content including the Refcardz I’ve co-authored: Very First Steps in Flex and Flex and Spring Integration.

Let me know what you think of the podcast. Thanks!

  • amar

    i tried your refcard at DZONE “first steps in flex” and the small apps UsingHTTPService and testChat didn’t work . The GUI worked but didn’t function. Gave a lots of errors:
    When tried to run testChat, it opened in browser but before the error came like this (even later, typed message didn’t show in the text area abobe”:
    [MessagingError message=’Destination ‘chat’ either does not exist or the destination has no channels defined (and the application does not define any default channels.)’]
    at mx.messaging.config::ServerConfig$/internalGetChannelSet()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\config\ServerConfig.as:624]
    at mx.messaging.config::ServerConfig$/getChannelSet()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\config\ServerConfig.as:255]
    at mx.messaging::MessageAgent/initChannelSet()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\MessageAgent.as:1083]
    at mx.messaging::MessageAgent/internalSend()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\MessageAgent.as:1059]
    at mx.messaging::Consumer/internalSend()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\Consumer.as:224]
    at mx.messaging::AbstractConsumer/subscribe()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\AbstractConsumer.as:624]
    at testChat/___testChat_Application1_creationComplete()[C:\Documents and Settings\Amarendra Kumar\My Documents\Flex Builder 3\testChat\src\testChat.mxml:3]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051]

  • Hi Amar,

    Make sure that when setting up the project you specify the information for the J2EE server.

    -James

  • Joy

    James,
    I have been palying with BlazeDs and Java for almost 3 months now, but one curious question popped up just now.
    In remoting-config.xml we always declare destination of java class and it invokes this class having a default contructor.
    What if i want to invoke a constructor with argument???
    e.g public class MyClass {
    public MyClass() {} // Default constructor
    public MyClass(String myArg){
    attr = myArg ;
    }
    What if i want to pass this “myArg” from Flex? What is the better way to handle this?
    Will appreciate your response on this.

  • Hi Joy,

    I think that remoteable classes must have a no-arg constructor unless perhaps if you are using the Spring BlazeDS Integration. In which case I think you can inject stuff in but that stuff still can’t be passed in from the client. You could consider setting your remoting destinations to use the session scope. I hope that helps.

    -James