Flex BlazeDS application to AIR?

Hi,
I have a Flex BlazeDS web application that work in Tomcat.
The application use BlazeDS message "Push" feature. Do you think if
it is possible for me to convert it to an air application.
The flex application need cobnfig in Tomcat. I am not sure if
it works when it convert to AIR without Tomcat.
Thanks
Mark

Hi,
You can have an AIR application that uses the BlazeDS
messaging features. The information in the config file you are
talking about (services-config.xml) gets compiled into the
application.
You'd need to set the endpoint to a complete absolute URL
though. (not relative like in Flex because both BlazeDS and Flex
app might be on the same server / domain).

Similar Messages

  • Flex web application or AIR application?

    Hi Everyone,
    I planning to rewrite an existing web application in flex. My primary concerns are security, performance and memory utilization. Which one is a better choice developing it as an flex web app or Air app?

    The Flash player doesn't support this due to security. I
    suggest you use an AIR application or redesign your web application
    not to require file system access.

  • Consuming toPDFA and isPDFA methods in DOCConverterService in Flex Builder 3.0 AIR Application

    Hi All,
    Does anyone have sample code how to consume and use the Docconverter service from Adobe Livecycle 8.2 ES in Flex Builder 3.0 AIR Application. I want to consume both the methods 1) toPDFA and 2) isPDFA methods to convert a PDF to PDFA and to check the compliance after conversion. If any one could help me in this, would be very grateful.
    Thanks in advance
    Umashanker.K

    I think the problem you are experiencing is this one:
    http://subclipse.tigris.org/issues/show_bug.cgi?id=511
    You probably have Subclipse 1.2.4 installed, which is the
    latest official release. But the new release based on Subversion
    1.5 has been in development for over a year. It will be version
    1.4.0 and probably released next week when Subversion 1.5 is
    released.

  • Flex 4.5.1 AIR 2.6 android mobile application

    I am trying my first Flex(4.5.1)/AIR(2.6) mobile application for android. I am using Flash Builder 4.5.1. I am able to run the application on desktop selecting the Target platform as Google Android and Google Nexus One as device to simulate. But I am facing problem in running the application on device. I exported the application for Google Android, it resulted in a HelloWorld.apk file. Then I installed it on device, it was installed with Success. When I tried to launch the application, I was getting blank screen. As my device was attached to my PC, I collected the logs. The logs were as follows:
    01-12 06:54:45.625: INFO/ActivityManager(95): No longer want   android.process.media (pid 7237): hidden #16 01-12 06:54:47.205:   INFO/ActivityManager(95): Starting: Intent {   act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]   flg=0x10200000 cmp=air.HelloWorld/.AppEntry } from pid 178 01-12   06:54:47.595: INFO/ActivityManager(95): Displayed   air.HelloWorld/.AppEntry: +343ms 01-12 06:54:52.665:   DEBUG/dalvikvm(178): GC_EXPLICIT freed 23K, 52% free 3122K/6407K,   external 5443K/6797K, paused 60ms
    Please help me out I am unable to see the application after launch.
    Thanks in advance.

    Hi,
    Earlier it was not installed. So it prompted me to install AIR. Then I installed it. So AIR runtime is installed on device.
    The code i tried to was:
    http://devgirl.org/files/ViewTransitionsSample/ViewTransitionsSample.fxp
    Thanks for trying to help me out.

  • Flex iPad Application : Run code before application enters background  Application Type: Flex Mobile Application Target Platform: iPad AIR Version: 4.0 Development Environment: Flash builder 4.6  I want to run some code just before iphone application goes

    Application Type: Flex Mobile Application
    Target Platform: iPad
    AIR Version: 4.0
    Development Environment: Flash builder 4.6
    I want to run some code just before iphone application goes into background. I need function similar to didEnterBackground
    of native xcode app
    (https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplicationDelegat e_Protocol/Reference/Reference.h
    tml#//apple_ref/occ/intfm/UIApplicationDelegate/applicationDidEnterBackground:)
    I tried using devactivated function of flash.display.STAGE.
    I used following addEventListener:
    STAGE = this.parent.stage;
    STAGE.addEventListener(Event.DEACTIVATE, onAppDeactivated);
    It worked for me but only when device is connected to development environment in debug mode. When I create my release build
    it is not working.
    So how can I make sure that my code runs before application goes into background.

    Even I am facing almost same issue
    Problem installing Adhoc version to iPhone and iPad - Development Environment Is - Adobe Flash CS6

  • Air application loading flex applications(no Air) with flex linked as RSL.

    Hello
    I am trying to make an AIR application which loads number of flex applications(no AIR). The subapplications are using the Flex SDK as a RSL, and each of them can use different version of the SDK.
    The problem is that the subapplicationsare trying to load the needed SDK from local filesystem, which they are not permited.
    public class CrossDomainRSLItem extends RSLItem
         override public function load(progressHandler:Function,
                                      completeHandler:Function,
                                      ioErrorHandler:Function,
                                      securityErrorHandler:Function,
                                      rslErrorHandler:Function):void

    Hi again.
    Is there any way to reliably edit the trust files with AIR application?
    As I see it we have to make the user to add our folder to the trusted locations, or to use some application which can find and write in the FlashPlayerTrust (native for the specific OS installer for example.). (even finding this directory with an AIR application seems not 100% reliable).
    Thanks in advance for you help.
    Ps: Right now I am trying to patch this.
    I compiled some sub-applications using custom preloader class(the controlling class, not the UI), where I removed the RSL loading. After that in an ApplicationDomain I load all the RSLs with loaders. After that I load the sub-application in the same domain. On paper this should work, but the sub-application can't find the classes from the RSLs(the first exeption is that there is no definition for spark.components.Application)

  • URL request syntax to redirect to a Flex Desktop application that runs in ADOBE AIR

    Hi,
    I'm developing a Flex Project that runs on ADOBE AIR. This
    project contains two Flex desktop applications that runs in ADOBE
    AIR.Now i need to redirect to one Flex desktop application from
    another Flex desktop application.Can anyone please tell me how the
    URL should look like in the new UrlRequest( ). Thanks in advance
    for any help....................

    After two days of research and getting localConnection to work, just to realize the application has to be running in order to pass variables to it with localConnection.  I realized that I set <allowBroswerInvocation> to true in my air application, but forgot to uncomment it in the descriptor file.  Extremely upsetting..... I can now get the airSWF.getApplicationVersion() to return the correct version number, but am still having problems with the airSWF.launchApplication() since it hard to debug, and just doesnt do anything.  Below is the code in the Install.log after running the launchApplication() function  I am still working on it and will post my progress.  Any help would be greatly appreciated, thank you.
    [2011-04-05:12:20:21] Application Installer begin with version 2.6.0.19120 on Windows 7 x86
    [2011-04-05:12:20:21] Commandline is: -playerVersion=10,1,82,76 -sandboxType=remote -securityDomain=airdownload.adobe.com -https=false -fromUserEvent=true -- -launch com.msp.two -- launchFromBrowser
    [2011-04-05:12:20:21] Installed runtime (2.6.0.19120) located at c:\Program Files (x86)\Common Files\Adobe AIR
    [2011-04-05:12:20:26] Application Installer end with exit code 0

  • Best practice for auto update flex web applications

    Hi all
    is there a best practice for auto update flex web applications, much in the same way AIR applications have an auto update mechanism?
    can you please point me to the right direction?
    cheers
    Yariv

    Hey drkstr
    I'm talking about a more complex mechanism that can handle updates to modules being loaded into the application ect...
    I can always query the server for the verion and prevent loading from cach when a module needs to be updated
    but I was hoping for something easy like the AIR auto update feature

  • Problem in RPC call (flex,blazeds,spring,H2,tomcat,eclipse)

    Hi, I've problem displaying value from backend onto the flex UI. I'm using Flex,BlazeDS, Spring, H2 in my applicaiton (testdrive app).  
    I've basically added another flex project to the testdrive app i downloaded. everything is working fine except the intended rpc invoke. 
    pls find the code snippets for the related change below :  
    1. FlexHelloWorld.mxml 
    private function resultHandler(event:ResultEvent):void 
    //used for debugging - shows details about result 
    //returned by the Java class method 
    Alert.show("success... in flex"); 
    Alert.show( ObjectUtil.toString(event.result) ); 
    <mx:RemoteObject id="ro" destination="helloServiceDestination" result="resultHandler(event)" fault="faultHandler(event)"/> 
    <mx:Panel x="25" y="10" width="653" height="407" layout="vertical" title="Test Flex 3 Using Java" borderColor="#008040" fontFamily="Arial" fontWeight="bold" fontSize="13"> 
    <mx:Text text="Click The Button To Test Getting Data Into Flex From A Java Class" fontWeight="bold" width="250"/> 
      <mx:Button label="Get Hello World Mesg From Java!" click="ro.getHelloWorld()"/> 
    </mx:Panel> 
    2. remoting-config.xml in flex 
    <destination id="helloServiceDestination" channels="my-amf"> 
         <properties> 
             <source>org.springframework.flex.samples.example.HelloWorld</source> 
         </properties> 
      </destination> 
    3. flex-servlet.xml in spring 
    <flex:remoting-destination ref="helloServiceDestination" /> 
    4. app-config.xml in spring 
    <bean id="helloServiceDestination" class="org.springframework.flex.samples.example.HelloWorld">   
      </bean> 
    5. HelloWorld.java 
    package org.springframework.flex.samples.example; 
      * TODO Document HelloWorld 
      * <p /> 
      * @author Vinod.Jayakumar 
    public class HelloWorld { 
    public String getHelloWorld(){ 
         return "HelloFromJava"; 
    expected result : http://localhost:1977/testdrive/FlexHelloWorld.html on click of button in the screen a alert message "HelloFromJava" should be shown but i get the following error message :  
    (mx.rpc::Fault)#0 
       content = (null) 
       errorID = 0 
       faultCode = "InvokeFailed" 
       faultDetail = "Couldn't establish a connection to 'helloServiceDestination'" 
       faultString = "[MessagingError message='Destination 'helloServiceDestination' either does not exist or the destination has no channels defined (and the application does not define any default channels.)']" 
       message = "faultCode:InvokeFailed faultString:'[MessagingError message='Destination 'helloServiceDestination' either does not exist or the destination has no channels defined (and the application does not define any default channels.)']' faultDetail:'Couldn't establish a connection to 'helloServiceDestination''" 
       name = "Error" 
       rootCause = (null) 
    Request you all to provide your valuable inputs. I know there's really something silly which has gone wrong

    Hi jvk180:
    Firstly, you should either need to define the destination in remoting-config.xml or in app-context.xml, but and in both places.
    Secondly, the error indicates that it is missing the channel information.
    Option 1:
    Assuming your bean "helloServiceDestination" uses other Spring beans, then:
    1. The right place to declare the destinations is in app-context.xml.
    2. In that case, you need to also define the channels that the destination will be exposed over. See documentation for how to do that.
    3. In your remote object declaration, you need to pass the channel set that gets used as well.
    <mx:ChannelSet id="cs">
       <mx:AMFChannel url="http://<yourServerName>:<yourServerPort>:/<yourContextRoot>/messagebroker/amf"/>
    </mx:ChannelSet>
    <mx:RemoteObject id="ro" destination="helloServiceDestination" channelset="{cs}" result="resultHandler(event)" fault="faultHandler(event)"/>
    Option 2:
    If you declare your destination, in remoting-config.xml, then you need to compile your swf with services-config.xml. Refer to documentation for how to do that.
    Hope that helps.
    Rohit

  • Issues with file upload in flex mobile application (sharepoint as backend)

    Hello,
    I am working on flex mobile application for android platform for which we are having sharepoint as a backend.
    (Flex SDK 4.6 and AIR 3.9)
    Issue which we are facing is as follows:
    We are communicating with the backend server using webservices: example:
    <s:WebService id="kWebService" wsdl="http://www.kservice.net/kdatabaseservice.asmx?WSDL" >
                <s:operation name="AddPost"
                             resultFormat="object"
                             result="addPostResult(event)"
                             fault="postsfaulterr(event)" />
    </s:WebService>
    Above services are working fine but we are facing issue with one service which is related to file upload.
    File upload for <10 MB is working fine but when we try to upload larger file on server it fails to process.
    We are sending bytearray to the backend and backend code is writing those bytearray into file.
    We have tried many ways to overcome from this situation. like we have checked configuration for file upload size on server , we have tried wcf services as well. Please help us on this criticle point as soon as possible
    Thanks
    Dhwani

    Prashant8809 wrote:
    Hi
    >
    > I have already gone through the video by Thomas Jung for multiple file upload but it saves the contents in server and not in >transparent table. So please suggest me alternative solutions.
    >
    >
    > Regards
    > Prashant Chauhan
    What do you mean that my video saves the contents int he server and not in transparent table?  I save the data into a temporary database table so it can be accessed by the parent WDA session. From there the WDA session can do whatever it wants with it.  What do you mean by transparent table - that would be a database table. Do you actually mean internal table?  if so, just read the data from the temporary database table into memory.

  • Running a Flash Builder 4.5 Mobile BlazeDS Application on the Device

    I've been developing a Flex Mobile application in a Flash Builder 4.5 mobile project.  The project uses a java/blazeds server, which is a spring application using the spring blazeds integration. I created the project with the Root URL property in Flex Server settings set to localhost (http://localhost:8080/myServerApp), and all has worked well.  I'm now trying to run the application on a usb connected android device, and am getting a warning that the device can't access my localhost location.  I changed localhost in the Root URL property to the ip of my workstation on the local wifi network the device and workstation are connected to (say http://10.0.0.2:8080/myServerApp), and receive the following error stack:
    ArgumentError: Error #2004: One of the parameters is invalid.  url: 'http:'
              at flash.net::NetConnection/connect()
              at mx.messaging.channels::NetConnectionChannel/internalConnect()[E:\dev\4.5.1\frameworks\pro jects\rpc\src\mx\messaging\channels\NetConnectionChannel.as:240]
              at mx.messaging.channels::AMFChannel/internalConnect()[E:\dev\4.5.1\frameworks\projects\rpc\ src\mx\messaging\channels\AMFChannel.as:307]
              at mx.messaging::Channel/connect()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\messaging\Cha nnel.as:884]
              at mx.messaging::ChannelSet/connectChannel()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\mes saging\ChannelSet.as:1707]
              at mx.messaging::ChannelSet/reconnectChannel()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\m essaging\ChannelSet.as:1809]
              at flash.utils::Timer/_timerDispatch()
              at flash.utils::Timer/tick()
    When I change the root url back to localhost, the error persists, and the only way to recover is to start a new project.  Am I doing something stupid or what?  Any help is greatly appreciated.
    Jay

    Hi,
    Looks like a debug build of your application was submitted.
    You have to "Export Release" a build of your application specifically for App store submission. Look at Step 4, sub-step 3 in "Package for distribution".
    Can you confirm if you picked "Final release package for app store" in "Export Release Build"?
    -Anirudh

  • Flash Builder 4.5: debugging Flex Mobile application on Android Virtual Device

    Hi,
    we are trying without success to debug a flex mobile application in Flash Builder 4.5 on an Android Virtual Device (AVD).
    We can debug with real Android devices via Flash Builder 4.5, by using a standard Mobile Application debug configuration with "On device" launch method, but emulated devices are not listed in the "Choose device" Flash Builder 4.5 window.
    The emulated device is correctly listed by "adb" command line tool, as the following screenshot shows:
    c:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks\4.5.0\lib\android\bin\adb" devices
    List of devices attached
    emulator-5554   device
    ("emulator-5554" has been created and started with Android AVD Manager standard Eclipse plug-in)
    By using the adb command-line tool we can also install applications on the emulated device, but we'd like to use Flash Builder 4.5 directly, without manually using adb.
    Many thanks in advance for any direction.
    PS: we can debug with Flash Builder "internal" android emulator (the one used with "On desktop" launch method), but we want to use the more "realistics" android emulated devices provided by Android SDK (Android Virtual Device (AVD)).

    well that's just ... oh what's the word I'm looking for? ... um ... ah yes - inconvenient.
    I've been wrestling with this too. I use VDs with eclipse all the time, I'm wondering why it's not supported in flashbuilder. I mean, it's just a VD that runs on a virtual port, plugs into the editor like a read device would - right?
    I'm going to take a wild stab at this and say it probably has something to do with running a program inside (Air) a virtual machine, running inside a virtual machine inside a virtual device?

  • What is the AS3 command to stop your Flex 2 Application

    I've been looking thru the documentation and I can't find the
    AS 3 command (or mxml command) that stops the Flex 2 application. I
    have a 'Log Out' button that will do some general clean up, then it
    should also cause the Flex application to cease operations.
    What are some commands to cause Flex applications to cease
    operations?
    In Java, the equivalent would be something like
    'System.exit(0);'

    I want to terminate operations - The user will be done with
    the appication at this point (when the click the logout button). I
    guess, It could invoke a web page that says its finished. I
    could force it back to the login screen if thats the only option.
    I notice that the AIR environment supports this.

  • [svn:fx-trunk] 12869: Fix FB-24801: Unable to run an application with AIR 3 .4 sdk

    Revision: 12869
    Revision: 12869
    Author:   [email protected]
    Date:     2009-12-11 14:50:26 -0800 (Fri, 11 Dec 2009)
    Log Message:
    Fix FB-24801: Unable to run an application with AIR 3.4 sdk
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FB-24801
    Modified Paths:
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/PlayerSessionManag er.java

    I've fixed the problem!
    I think the problem was in the way I was linking to the libraries. I ended up deleting all my hand made ANT settings and instead exporting the settings from my Flash Builder project, and just using those.
    Full details in this article here, it saved my life: http://helpx.adobe.com/x-productkb/multi/compilation-results-flex-builder-flex.html

  • Flex + BlazeDS

    Hello, friends!
    I'm new to both Flex and Java.
    I'm trying the most simple tutorials (
    http://www.adobe.com/devnet/livecycle/articles/blazeds_gettingstarted.html),
    and doing everything according, but I can't put the Flex working
    with the BlazeDS.
    I post my doubt on BlazeDS forum, but no one has even
    answered.
    The question is, when I run my MXML application, I can see
    through the Firebug that the 404 (not found) error occurs on "
    http://localhost:8080/myfirst/messagebroker/amf".
    Until now, I don't even know if the problem is on my MXML
    app, on my Java classes, on the config xml files or in my server.
    Does anyone know where could be the problem? Or could someone
    point out a beginners Flex + BlazeDS tutorial?
    Thank you,
    CaioToOn!

    http://localhost:8080/myfirst/messagebroker/amf
    is the servlet mapping that should be defined in web.xml
    make sure tomcat is running, blazeDS is deployed and most
    imporantly try accessing
    http://localhost:8080/myfirst/messagebroker/amf".
    with browser, if blazeDS is deployed you get blank page, if not
    than servlet and or/tomcat is not running
    based on url :
    http://localhost:8080/myfirst/messagebroker/amf".
    conclusions are following :
    you have webapplication context named "myfirst" deployed
    inside webapps directory of tomcat,
    (assuming you use tomcat).

Maybe you are looking for