Flex Remoting

when I am in development, my remoting calls have to go over flex.messaging.endpoints.AMFEndpoint, but in production it has to go over flex.messaging.endpoints.SecureAMFEndpoint.
My RemoteObject destination is "rubyamf," and my services-config.xml looks like this:
<services>
     <service id="rubyamf-flashremoting-service" class="flex.messaging.services.RemotingService"
         messageTypes="flex.messaging.messages.RemotingMessage"
         >
         <destination id="rubyamf">
              <channels>
                   <channel ref="channel-rubyamf" />
                   <channel ref="channel-rubyamf-secure" />
              </channels>
              <properties>
                   <source>*</source>
              </properties>
         </destination>
    </service>
</services>
<channels>
   <!-- RUBY AMF -->  
  <channel-definition id="channel-rubyamf" class="mx.messaging.channels.AMFChannel">
   <endpoint uri="/app/rubyamf/gateway" class="flex.messaging.endpoints.AMFEndpoint" />
   <properties>
   <polling-enabled>true</polling-enabled>
   </properties>
   </channel-definition>
   <!-- SECURE RUBY AMF -->
   <channel-definition id="channel-rubyamf-secure" class="mx.messaging.channels.SecureAMFChannel">
   <endpoint uri="/app/rubyamf/gateway" class="flex.messaging.endpoints.SecureAMFEndpoint" />
   </channel-definition>
</channels>
If I use this, will it work for my development and production environments? I don't like having to have to recompile the app each time I want to launch it for production.

"drenner1" <[email protected]> wrote in
message
news:gf9j2f$901$[email protected]..
>i have a current app .... it uses a web service to pull
data .... returns
>the
> data as XML and then the data is converted to an
arraycollection for use
> in
> various datagrid dataproviders ..... bottleneck in app
appears to be
> converting all data from xml to arraycollection ....
approx 5 minutes to
> process 3000 rows before data appears in app .... so
want to use remoting
> to
> improve app performance ...
>
> my question is: when I use remoting and return data to
client via
> remoting,
> can I use the data immediately without having to do a
'conversion' step as
> the
> app is currently doing ??? can the data returned via
remoting immediately
> be
> processed as an array (for example, looping over array
elements) so it can
> be
> 'partitioned' for use for the various datagrids?? or do
I still have to do
> some
> sort of conversion like I am currently doing ??? if I
can immediately
> 'use' the
> data returned from the remote object without having to
do a conversion
> step, I
> am thinking this will increase performace dramatically
Try using an XMLListCollection.

Similar Messages

  • Amfphp - flex remote object error event handler

    I'm using amfphp and I want it to return an error that the flex remote object error event handler will pick up. At the moment I can get only the result handler to do anything in flex.

    Hi,
    Try throwing an exception in the remote method. For example,
    function inverse($x) {
        if (!$x) {
            throw new Exception('Division by zero.');
        else return 1/$x;

  • Channel Definition Error in Flex Remoting

    Hi,
    Any help would be Appreciated. I am using Flex 2.0 and
    webborb 3.3 for flex remoting. I have created a flex project in
    Flex Data services method. After creating the project it is
    throwing an error
    "Channel defintion, weborb.messaging.weborbMessagingChannel,
    cannot be found". But When Try to do the above process using weborb
    3.1. It is working fine.
    Can anybody help me to solve this issue.

    Ok, solved the problem. Found answer from here:
    http://forum.fluorinefx.com/viewtopic.php?f=9&t=3
    I installed LCDS Express and then added fds.swc to my project
    from LCDS-folder.

  • Iphone apps using flex remote objects with CF???

    I am used to making web applications that use flex remote objects to interact with CF.
    Is it possible to use remoting from an iphone app cross compiled using flash builder to interact with Cf remoting on a remote server?

    Interseting, config files always seem to me like a strange way to do things.
    I'm not exactly sure what you mean by this, but by default, that's how remoting works in Flex - you have channels and destinations defined on your server, and your compiler points to your config files and reads those values. So it's a little extra work to define them in AS instead.
    Can you give me any tips on authenticating requests to cfc's from mobiles and how to protect my servers once I exposes cfc's to apps not hosted on the same server as CF?
    There isn't really anything mobile-specific you need to do here. Exposing CFCs isn't any different than exposing CFM files that are accessed via a browser. You can use the standard CF session management and CF authentication (cflogin) - there are some examples available by Googling "coldfusion cflogin flex remoting".
    Dave Watts, CTO, Fig Leaf Software

  • PROBLEM: Coldfusion/Flex Remote Project Creation

    Okay,
    I have read these two threads and have looked everywhere, but
    still am stumped:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=582&threadid =1239851&highlight_key=y&keyword1=coldfusion
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=582&threadid =1239851&highlight_key=y&keyword1=coldfusion
    I have FlexBuilder 2 installed on my local machine. My
    project, however, is accessed via a mapped drive to our development
    server (and yes, we have MX 7.0.2 installed).
    All of the examples I see seem to assume that CF server is
    installed locally -- but, of course in this instance it is not.
    When creating the CF project, I am assuming that I have to some
    make connection to the remote server, so it doesn't make sense to
    browse to the config file on my mapped driver (where I get the
    Invalid root error anyway).
    I am tearing my hair out. I can't even do the easy-peasy
    Hello World example that uses a cfc to return the string via
    mx:remoteobject (remote connection errors). I have gotten to
    Chapter 17 of the Flex 2: Training from the source and have bombed
    in returning cfc data as the book, again, assumes a local
    installation of cfserver (Server.Error.Request:HTTP request error),
    and I have attempted another example that creates an xml doc (using
    cfxml) on the fly.
    So -- either I am an idiot, or there is some huge gap in the
    documentation somewhere. Is the assumption that all Flex
    development will occur locally (which would require the
    installation of a cf server on the local machine (if using a cf
    back end)? Or, are are we supposed to somehow use RDS to connect to
    a remote development server running cf? I have a successful RDS
    connection to the development server, but that does not seem to do
    anything.
    Please help!
    Thanks so much,
    GT

    Okay,
    I have read these two threads and have looked everywhere, but
    still am stumped:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=582&threadid =1239851&highlight_key=y&keyword1=coldfusion
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=582&threadid =1239851&highlight_key=y&keyword1=coldfusion
    I have FlexBuilder 2 installed on my local machine. My
    project, however, is accessed via a mapped drive to our development
    server (and yes, we have MX 7.0.2 installed).
    All of the examples I see seem to assume that CF server is
    installed locally -- but, of course in this instance it is not.
    When creating the CF project, I am assuming that I have to some
    make connection to the remote server, so it doesn't make sense to
    browse to the config file on my mapped driver (where I get the
    Invalid root error anyway).
    I am tearing my hair out. I can't even do the easy-peasy
    Hello World example that uses a cfc to return the string via
    mx:remoteobject (remote connection errors). I have gotten to
    Chapter 17 of the Flex 2: Training from the source and have bombed
    in returning cfc data as the book, again, assumes a local
    installation of cfserver (Server.Error.Request:HTTP request error),
    and I have attempted another example that creates an xml doc (using
    cfxml) on the fly.
    So -- either I am an idiot, or there is some huge gap in the
    documentation somewhere. Is the assumption that all Flex
    development will occur locally (which would require the
    installation of a cf server on the local machine (if using a cf
    back end)? Or, are are we supposed to somehow use RDS to connect to
    a remote development server running cf? I have a successful RDS
    connection to the development server, but that does not seem to do
    anything.
    Please help!
    Thanks so much,
    GT

  • Flex Remoting - Deeply Nested ArrayCollections not Stongly Typed

    I have a Flex 3 app which uses remoting. All works relatively well except for the following...
    I have a deeply nested object graph as follows:
    ( btw: each VO uses [RemoteClass(alias="com.mypackage.xxx")] meta tags )
    The main class is called "BrandVO" which contains an ArrayCollection on ProductLineVOs.
    each "ProductLineVO" has an ArrayCollection of "ProductVO"s
    each "ProductVO" has an ArrayCollection of "CaseVO"s, "UseVO"s, and  "IngredientVO"s.
    Pseudo Graphically:
    +-BrandVO
    +----ProductLineVO
    +-------ProductVO
    --------------CaseVO
    --------------UseVO
    --------------IngredientVO
    +-------ProductVO
    --------------CaseVO
    --------------UseVO
    --------------IngredientVO
    +----ProductLineVO
    +-------ProductVO
    --------------CaseVO
    --------------UseVO
    --------------IngredientVO
    +-------ProductVO
    --------------CaseVO
    --------------UseVO
    --------------IngredientVO
    ...etc...
    When I make the remoting call (AMF3) , I properly recieve back an ArrayCollection of BrandVOs...
    (Debugging shows each item in the ArrayCollection [0]...[n] has a Value com.mypackage.BrandVO(@1234etc)
    Expanding each BrandVO shows properly typed nested ProductLineVO elements...
    (Debugging shows each item in the ArrayCollection [0]...[n] has a Value com.mypackage.ProductLineVO(@1234etc)
    Expanding each ProductLineVO shows properly typed nested ProductVO elements...
    (Debugging shows each item in the ArrayCollection [0]...[n] has a Value com.mypackage.ProductVO (@1234etc)
    The problem then is when expanding each ProductVO, the nested CaseVOs, UseVOs, and IngredientVOs ( although they contain the proper data) are typed generically.
    (Debugging CaseVOs shows each item in each ArrayCollection [0]...[n] has a Value Object (@1234etc )
    (Debugging UseVOsshows each item in each ArrayCollection [0]...[n] has a Value Object (@1234etc )
    (Debugging IngredientVOs shows each item in each ArrayCollection [0]...[n] has a Value Object (@1234etc )
    I don't know why all the other VO's get typed correctly but CaseVOs, UseVOs, and IngredientVOs fail to be stongly typed and default to generic Objects.
    I have checked the returning remoting call data ( with ServiceCapture ) and the objects coming back do have the correct types. The problem seems to be at the Flex level.
    Anyone know why this would happen?
    Is there a limit to object grpah depth beyind which objects get typed generically?
    I thought perhaps is was because the ProductVO has 3 ArrayCollections ( CaseVOs, UseVOs, and IngredientVOs ), so I tried removing all but CaseVO and had the same problem... CaseVO was typed as Object.
    Any help/thoughts would be gratly appreciated.
    ~e

    Hey Michael,
    Thank you for the quick response and helpful suggestion.
    Sure enough, if I just call for a CaseVO, it still is generically typed as an Object; so your theory that Flex cannot match up the RO and VO seems to be the correct. I have reviewed the code however and can't see any discrepancies. If you have a moment, can you take a look at the following and see if any errors seem evident:
    The Flex VO
    ==========
    package com.mypackage.vo
       [RemoteClass(alias="com.mypackage.admin.vo.CaseVO")]
       public class CaseVO
            public var caseId:int;
            public var orderNumber:String;
            public var productId:int;
            public var qty:int;
            public var caseWeight:Number;
            public var measurementUnitId:int;
            public function CaseVO()
    The Romote Java RO
    Notes:
    1. The RO package is different then the VO package ( there is an extra "admin" dir component )
        but that shouldn't matter should it?
        ( since the proper mapping is declared in the "alias=" of the VO )
    2. I tried it w/o the serialVersionUID proerty and method
    3. I tried it w/o the equals and hashCode methods
    =================================================
    package com.mypackage.admin.vo;
    public class CaseVO implements Serializable
       public static final long serialVersionUID = 1L;
       private int caseId;
       private String orderNumber;
       private int productId;
       private int qty;
       private float caseWeight;
       private int measurementUnitId;
       public static long getSerialVersionUID() { return serialVersionUID;}
       public int getCaseId() { return caseId; }
       public void setCaseId(int caseId) {this.caseId = caseId;}
       public String getOrderNumber() {return orderNumber;}
       public void setOrderNumber(String orderNumber) {this.orderNumber = orderNumber; }
       public int getProductId() {return productId;}
       public void setProductId(int productId) {this.productId = productId;}
       public int getQty() { return qty;}
       public void setQty(int qty) {this.qty = qty;}
       public float getCaseWeight() {return caseWeight; }
       public void setCaseWeight(float caseWeight) {this.caseWeight = caseWeight; }
       public int getMeasurementUnitId() {return measurementUnitId;}
       public void setMeasurementUnitId(int measurementUnitId) { this.measurementUnitId = measurementUnitId; }
       public boolean equals(Object other)
            if (this == other) return true; 
            if ( !(other instanceof CaseVO) ) return false;
            final CaseVO case = (CaseVO) other;
            if ( case.getCaseId() != getCaseId() ) return false;
            if ( !case.getOrderNumber().equals(getOrderNumber()) ) return false;
            return true;
       public int hashCode()
            int result;
            result = getOrderNumber().hashCode();
            result = 29 * result + getCaseId();
            return result;
    Thanks,
    ~e

  • SSL Flex Remote Object - no remoting-config file

    I realize that this topic has been discussed a lot, and I think
    I have the solution figured out.
    The problem is that I have to edit the remoting-config file - and there isn't one!
    I've hunted high and low on the server, and I just don't have the file.
    We are using Coldfusion                                      8,0,0,176276   Enterprise, and I have an instance for my flex applicaitons (we have multiple instances running, and none of them have the file).  The server is running on a Solaris VM.
    How do I fix this problem??
    Thanks!
    Jenn

    My context root is specified as the default "/" When I remove the context root variable from the services-config.xml, it can't find the file. I don't know where I can change context root, but I am confused as to what it should be, regardless.
    Add the -context-root to the compiler options, just like -services and set it to an empty string
    -services="/Applications/JRun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/f lex/servics-config.xml" -context-root=""

  • How do I get flex remoting to work with Coldfusion 11

    Hi,
    Coldfusion 11 (Developer)
    Flex 3
    Existing Flash Application works with Coldfusion 8
    Flex Integration is turned on.
    Running latest update
    CentOS 6.1 with latest updates
    I have done the following:
    http://127.0.01/flashservices/gateway  ---> Page Not found
    http://127.0.01/flashservices/gateway/  ---> Page Not found
    http://forums.adobe.com/message/5621721#5621721
    Confusion Blog » Apache + Debian + Coldfusion 10 + flex2gateway = Error 404
    https://groups.google.com/forum/#!topic/railo/6j2i6gl8Ac4
    \config\wsconfig\1\uriworkermap.properties file to include:
    /flashservices/gateway/* = cfusion
    /flashservices/gateway = cfusion
    I have modified the mod_jk.conf like so:
    # Select the timestamp log format
    JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
    # Fix para Flex2gateway
    <IfModule jk_module>
        JkMount /*.cfm ajp13
        JkMount /*.cfc ajp13
        JkMount /*.do ajp13
        JkMount /*.jsp ajp13
        JkMount /*.cfchart ajp13
        JkMount /*.cfres ajp13
        JkMount /*.cfm/* ajp13
        JkMount /*.cfml/* ajp13
        JkMountCopy all
    </IfModule>
    AddHandler jakarta-servlet .cfm .cfml .cfc .cfr .cfswf
    Alias /CFIDE "/opt/coldfusion10/cfusion/wwwroot/CFIDE"
    I uncommented the "start flex 2" section in web.xml
    Nothing has worked.
    I have searched Google and Adobe.
    I was hoping that Adobe would have the "Flex Integration Check Box" working
    by now.  It only been around since ColdFusion 8 and basically does nothing.
    Adobe could post a tutorizl on how to get this working.
    Job Security for "Tech Support".
    Any ideas.
    Brian

    Do you have internet when wired to the router?
    What exactly is the problem? What error messages do you get?
    What are the current settings on the WRT?

  • Retrieving the remote IP when using Flex Remoting over RTMP

    Hello,
    I am trying to retrieve the IP address of a user making a Java call to my service defined in remoting-config.xml
    If i setup an AMF channel I can use the folllowing to retrieve the remote IP address:
    String ip = FlexContext.getHttpRequest().getRemoteAddr();
    But when i try to do the same over a RTMP channel I get a Java exception because the object that RTMP uses to fake a httprequest doesn't implement that function.
    How do i retrieve the IP of the user making the call in this case? It has to be somewhere or the server wouldn't be able to send a reply to the client, but i haven't been able to find it.
    Constantijn Visinescu

    I tried all of your ideas and still no luck (see below). One thing I forgot to mention was that when using Internet Exploier to view the web page on another computer I can see the document title (AKA- VI name) and the header I typed in. But where the vi should be I have the missing picture Icon (the one you see when a web page has a bad link to an image). Image will show up on sever computer when I click preview web page. Is there anything that the receiving computer needs to have other than the run time code?
    TST – I have found that the start web sever button will gray out if  you goto tools options web server configuration then manual check the enable web server check box. So that wasn’t it.
    Soroush- I set up computer to be a server using control panel (I didn’t know you could do that) thank for the ini file I will update mine
    Thoskins- I change port number and the still didn’t work
    HTML code created using Labview web publishing code  (everything looked go to me???)
    var obj = '<OBJECT ID="LabVIEWControl" CLASSID="CLSID:A40B0AD4-B50E-4E58-8A1D-8544233807AC" WIDTH=1019 HEIGHT=716 CODEBASE="ftp://ftp.ni.com/support/labview/runtime/windows/7.1';
    if (lng.indexOf("fr") != -1) { obj = obj + '/French'; }
    else if (lng.indexOf("de") != -1) { obj = obj + '/German'; }
    else if (lng.indexOf("ja") != -1) { obj = obj + '/Japanese'; }
    obj = obj + '/LVRunTimeEng.exe">';
    document.write(obj);
    // --></SCRIPT>
    <PARAM name="LVFPPVINAME" value="390Troubleshoot.vi">
    <PARAM name="REQCTRL" value=false>
    <EMBED SRC=".LV_FrontPanelProtocol.rpvi71" LVFPPVINAME="390Troubleshoot.vi" REQCTRL=false TYPE="application/x-labviewrpvi71" WIDTH=1019 HEIGHT=716  PLUGINSPAGE="http://digital.ni.com/express.nsf/express?openagent&code=ex3e33&"></EMBED>
    </OBJECT>
    </TD></TR></TABLE>
    </HTML>

  • How to implement springsecurity in flex

    Hi..All
    i'm newbie and need your help
    I have  difficulty in the implementation of security on the flex project using  spring security. in implementation the project i'm using
    BlazeDS Turnkey.
    Apache Tomcat
    Eclipse Ganymede 3.4 (for editing code)
    I've tried to make it but always get an error message
    "[MessagingError  message = 'Destination' securityHelper 'either does not exist or the  destination has no channels defined (and the application does not define  any default channels .)']- could not establish a connection to'  securityHelper'-InvokeFailed"
    and below my source  code
    1. web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="2.4"
      xmlns="http://java.sun.com/xml/ns/j2ee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
        <display-name>Spring BlazeDS Integration Samples</display-name>
        <context-param>
            <param-name>flex.class.path</param-name>
            <param-value>/WEB-INF/flex/hotfixes,/WEB-INF/flex/jars</param-value>
        </context-param>
        <context-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>
                /WEB-INF/spring/*-config.xml
            </param-value>
        </context-param>
        <!-- -->
        <filter>
            <filter-name>springSecurityFilterChain</filter-name>
            <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
        </filter>
        <filter-mapping>
          <filter-name>springSecurityFilterChain</filter-name>
          <url-pattern>/*</url-pattern>
        </filter-mapping>
        <listener>
            <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
        </listener>
        <!-- Http Flex Session attribute and binding listener support -->
        <listener>
            <listener-class>flex.messaging.HttpFlexSession</listener-class>
        </listener>
        <!-- MessageBroker Servlet
        <servlet>
            <servlet-name>MessageBrokerServlet</servlet-name>
            <servlet-class>flex.messaging.MessageBrokerServlet</servlet-class>
            <init-param>
                <param-name>services.configuration.file</param-name>
                <param-value>/WEB-INF/flex/services-config.xml</param-value>
            </init-param>
            <init-param>
                <param-name>flex.write.path</param-name>
                <param-value>/WEB-INF/flex</param-value>
            </init-param>
            <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet-mapping>
            <servlet-name>MessageBrokerServlet</servlet-name>
            <url-pattern>/messagebroker/*</url-pattern>
        </servlet-mapping>
        -->
        <servlet>
            <servlet-name>flex</servlet-name>
            <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet-mapping>
            <servlet-name>flex</servlet-name>
            <url-pattern>/messagebroker/*</url-pattern>
         </servlet-mapping>
        <welcome-file-list>
            <welcome-file>index.html</welcome-file>
            <welcome-file>index.htm</welcome-file>
            <welcome-file>index.jsp</welcome-file>
            <welcome-file>default.html</welcome-file>
            <welcome-file>default.htm</welcome-file>
            <welcome-file>default.jsp</welcome-file>
        </welcome-file-list>
    </web-app>
    2. flex-servlet.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:flex="http://www.springframework.org/schema/flex"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="
            http://www.springframework.org/schema/beans
            http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
            http://www.springframework.org/schema/flex
            http://www.springframework.org/schema/flex/spring-flex-1.0.xsd">
        <flex:message-broker>
            <flex:message-service
                default-channels="my-streaming-amf,my-longpolling-amf,my-polling-amf" />
            <flex:secured />
        </flex:message-broker>
        <!-- Expose the productService bean for BlazeDS remoting -->
        <flex:remoting-destination ref="productService" />
        <!-- Expose the contactService bean for BlazeDS remoting -->
        <flex:remoting-destination ref="contactService" />
        <!-- Expose the securedProductService bean for BlazeDS remoting -->
        <flex:remoting-destination ref="securedProductService" />
        <!-- Helper for getting the currently authenticated user-->
        <bean id="securityHelper" class="org.springframework.flex.samples.secured.SecurityHelper">
            <flex:remoting-destination/>
        </bean>
        <!-- Messaging destinations -->
        <flex:message-destination id="chat" />
        <flex:message-destination id="secured-chat" send-security-constraint="trusted" />
        <flex:message-destination id="simple-feed" />
        <flex:message-destination id="market-feed" allow-subtopics="true" subtopic-separator="." />
        <flex:jms-message-destination id="jms-chat" jms-destination="chatTopic" />     <!-- See configuration of "chatTopic" in /WEB-INF/spring/infrastructure-config.xml -->
        <flex:integration-message-destination id="si-receive" message-channel="toFlex"/> <!-- See configuration of "toFlex" in /WEB-INF/spring/integration-config.xml -->
        <flex:integration-message-destination id="si-send" message-channel="fromFlex"/> <!-- See configuration of "fromFlex" in /WEB-INF/spring/integration-config.xml -->      
        <!-- MessageTemplate makes it easy to publish messages -->
        <bean id="defaultMessageTemplate" class="org.springframework.flex.messaging.MessageTemplate" />
        <!-- Pojo used to start and stop the data feed that pushes data in the 'simple-feed' destination -->
        <bean id="simpleFeedStarter" class="org.springframework.flex.samples.simplefeed.SimpleFeed">
            <constructor-arg ref="defaultMessageTemplate" />
            <flex:remoting-destination />
        </bean>
        <!-- Pojo used to start and stop the data feed that pushes data in the 'market-feed' destination -->
        <bean id="marketFeedStarter" class="org.springframework.flex.samples.marketfeed.MarketFeed">
            <constructor-arg ref="defaultMessageTemplate" />
            <constructor-arg value="stocklist.xml" />
            <flex:remoting-destination />
        </bean>
    </beans>
    3.service-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <services-config>
        <services>
            <default-channels>
               <channel ref="my-amf"/>
            </default-channels>
            <service-include file-path="remoting-config.xml" />
            <service-include file-path="proxy-config.xml" />
            <service-include file-path="messaging-config.xml" />
        </services>
        <channels>
            <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
                <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
            </channel-definition>
            <channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel">
                <endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/>
                <properties>
                    <add-no-cache-headers>false</add-no-cache-headers>
                </properties>
            </channel-definition>
            <channel-definition id="my-polling-amf" class="mx.messaging.channels.AMFChannel">
                <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/>
                <properties>
                    <polling-enabled>true</polling-enabled>
                    <polling-interval-seconds>4</polling-interval-seconds>
                </properties>
            </channel-definition>
            <channel-definition id="my-longpolling-amf" class="mx.messaging.channels.AMFChannel">
                <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amflongpolling" class="flex.messaging.endpoints.AMFEndpoint"/>
                <properties>
                    <polling-enabled>true</polling-enabled>
                    <polling-interval-seconds>5</polling-interval-seconds>
                    <wait-interval-millis>60000</wait-interval-millis>
                    <client-wait-interval-millis>1</client-wait-interval-millis>
                    <max-waiting-poll-requests>200</max-waiting-poll-requests>
                </properties>
            </channel-definition>      
            <channel-definition id="my-streaming-amf" class="mx.messaging.channels.StreamingAMFChannel">
                <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/streamingamf" class="flex.messaging.endpoints.StreamingAMFEndpoint"/>
            </channel-definition>
        </channels>
        <security>
            <login-command class="flex.messaging.security.TomcatLoginCommand" server="Tomcat"/>
            <security-constraint id="trusted">
                <roles>
                    <role>ROLE_USER</role>
                    <role>ROLE_ADMIN</role>
                </roles>
            </security-constraint>
        </security>
        <logging>
            <target class="flex.messaging.log.ConsoleTarget" level="Warn">
                <properties>
                    <prefix>[BlazeDS] </prefix>
                    <includeDate>false</includeDate>
                    <includeTime>false</includeTime>
                    <includeLevel>false</includeLevel>
                    <includeCategory>false</includeCategory>
                </properties>
                <filters>
                    <pattern>Endpoint.*</pattern>
                    <pattern>Service.*</pattern>
                    <pattern>Configuration</pattern>
                </filters>
            </target>
        </logging>
        <system>
            <redeploy>
                <enabled>false</enabled>
            </redeploy>
        </system>
    </services-config>
    4. remoting-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <service id="remoting-service" class="flex.messaging.services.RemotingService">
        <adapters>
            <adapter-definition id="java-object"
                class="flex.messaging.services.remoting.adapters.JavaAdapter"
                default="true" />
        </adapters>
        <default-channels>
            <channel ref="my-amf" />
        </default-channels>
    </service>
    5. spring/security-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <beans:beans xmlns="http://www.springframework.org/schema/security"
        xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
                            http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.4.xsd">
    <!--
        <http>
            <form-login default-target-url="/secured/secured.html" login-page="/login.jsp" />
        </http>
    -->
        <http>
            <form-login default-target-url="/ZeroToHero.html"/>
        </http>
        <authentication-provider>
            <user-service>
                <user name="john" password="john" authorities="ROLE_USER" />
                <user name="admin" password="admin" authorities="ROLE_USER, ROLE_ADMIN" />
                <user name="guest" password="guest" authorities="ROLE_GUEST" />
            </user-service>
        </authentication-provider>
    </beans:beans>
    6. ZeroToHero.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
        applicationComplete="applicationCompleteHandler()">
        <mx:RemoteObject id="productService" destination="securedProductService" fault="faultHandler(event)"/>
        <mx:RemoteObject id="securityHelperTest" destination="securityHelper" fault="faultHandler(event)">
            <mx:method name="getAuthentication" result="userHandler(event)"/>
        </mx:RemoteObject>
        <mx:Script>
            <![CDATA[
                import mx.messaging.ChannelSet;
                import mx.messaging.channels.AMFChannel;
                import mx.controls.Alert;
                import mx.rpc.AsyncToken;
                import mx.rpc.AsyncResponder;
                import mx.rpc.events.FaultEvent;
                import mx.rpc.events.ResultEvent;
                [Bindable]
                private var user:Object = null;
                private function applicationCompleteHandler():void
                    securityHelperTest.getAuthentication();
                    chat.consumer.subscribe();
                private function userHandler(event:ResultEvent):void
                    user = event.result;
                    if (user != null) {
                        userId.text = user.name;
                        userId.editable = false;
                        password.editable = false;
                private function faultHandler(event:FaultEvent):void
                    Alert.show(event.fault.faultString + "-" +
                    event.fault.faultDetail + "-" +
                    event.fault.faultCode, "Error accessing RemoteObject");
                private function login():void
                    var token:AsyncToken = securityHelperTest.channelSet.login(userId.text, password.text);
                      token.addResponder(
                          new AsyncResponder(
                              function(event:ResultEvent, token:Object = null):void{
                                  user = event.result;
                                  userId.editable = false;
                                  password.editable = false;
                              function(event:FaultEvent, token:Object = null):void{
                                  Alert.show(event.fault.faultString, "Login Failed");
                private function logout():void
                    securityHelperTest.channelSet.logout();
                    user = null;
                    userId.text = "";
                    userId.editable = true;
                    password.text = "";
                    password.editable = true;
                    grid.dataProvider.removeAll();       
            ]]>
        </mx:Script>
        <mx:Form>
            <mx:FormItem label="User Id">
                <mx:TextInput id="userId"/>
            </mx:FormItem>
            <mx:FormItem label="Password">
                <mx:TextInput id="password" displayAsPassword="true"/>
            </mx:FormItem>
            <mx:FormItem direction="horizontal">
                <mx:Button label="Login" click="login()"/>
                <mx:Button label="Logout" click="logout()"/>
            </mx:FormItem>
        </mx:Form>
        <mx:Accordion width="100%" visible="{user != null}">
            <mx:Canvas label="Products" width="100%">
                <mx:Panel width="100%">
                    <mx:DataGrid id="grid" dataProvider="{productService.findAll.lastResult}" width="100%" height="100%">
                        <mx:columns>
                            <mx:DataGridColumn dataField="productId" headerText="Product ID" visible="{user != null ? user.authorities.indexOf('ROLE_ADMIN') >= 0 : false}"/>
                            <mx:DataGridColumn dataField="name" headerText="Name" />
                            <mx:DataGridColumn dataField="category" headerText="Category" />
                            <mx:DataGridColumn dataField="description" headerText="Description" />
                            <mx:DataGridColumn dataField="image" headerText="Image" />
                            <mx:DataGridColumn dataField="price" headerText="Price" />
                            <mx:DataGridColumn dataField="qty" headerText="Qty" />
                        </mx:columns>
                    </mx:DataGrid>
                    <mx:Button label="Get Data" click="productService.findAll()"/>
                </mx:Panel>
            </mx:Canvas>
            <Chat id="chat" username="{user.name}"/>
        </mx:Accordion>
    </mx:Application>
    please help me,

    remote-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <service id="remoting-service" class="flex.messaging.services.RemotingService">
        <adapters>
            <adapter-definition id="java-object"
                class="flex.messaging.services.remoting.adapters.JavaAdapter"
                default="true" />
        </adapters>
        <default-channels>
            <channel ref="my-amf" />
        </default-channels>
        <destination id="securityHelper">
            <properties>
                <source>org.springframework.flex.samples.secured.SecurityHelper</source>
                <scope>application</scope>
            </properties>
        </destination>
    </service>
    SecurityHelper.as (for calling remote object from client) of my own. and I think this SecurityHelper.as wrong because not return value, and I do  not know how to call a java class SecurityHelper.java
    package com.adobe
        [Bindable]
        [RemoteClass(alias="org.springframework.flex.samples.secured.SecurityHelper")]
        public class SecurityHelper
            public function SecurityHelper()
    SecurityHelper.java
    package org.springframework.flex.samples.secured;
    import java.util.Map;
    import org.springframework.flex.security.AuthenticationResultUtils;
    public class SecurityHelper {
        public Map<String, Object> getAuthentication() {
            return AuthenticationResultUtils.getAuthenticationResult();
    thank's
    Message was edited by: agungdmt

  • What are the better load/performance testing tools available for Flex Application with BlazeDS RO?

    In my application is designed with Flex3, ActionScript3, BlazeDS Remote Objects.
    Just i tried with OPENSTA but i cant do the dynamic parameterization in their generated scripts because the response of the calls is binary values and also we cant get the response using with SCL language.
    While testing with OPENSTA with HttpService, i can do the dynamic parameterization and got the response.
    can give the information about the below questions
    whether we can do dynamic parameterization with OPENSTA for Flex Remote objects?
    and  what are the better load/performance tools available for Flex Remote Objects?

    Your approach is fine, depending on how many and what type of CFCs you are talking about. If they are "singletons" - that is, only one instance of each CFC is needed to be in memory and can be reused/shared from multiple parts of your application - caching them in the application scope is common.  Just make sure they are thread safe ("var" or local.* all your method variables).
    You might consider taking advantage of a dependency injection framework, such as DI/1 (part of the FW/1 MVC framework), ColdSpring, or WireBox (a module of the ColdBox platform that can be used independently).  They have mechanisms for handling and caching singletons.  Then you wouldn't have to go to the application scope to get your CFC instances.
    -Carl V.

  • Can't import Flex project

    I wonder if someone can  help me with this.  I am using FlexBuilder 3.  I am unable to import my project from one laptop to another.  The old laptop had CF8 and the new has CF9 so I’m not sure if this is the problem. When I try to import an archive I exported from the CF8 laptop, I get the prompt to update the path variables.  It accepts the path to ColdFusion9 but will not accept the web root.  I have tried C:\inetpub\wwwroot but it gives error message saying ‘the selected web root folder does not exist’.  I also tried C:\inetpub and C:\ColdFusion9\wwwroot. 
    I’m stumped at this point and desperate to get this imported.  I have been having a nightmare trying to migrate this application from CF8, Windows Server 2003, IIS 6 to CF9, Windows Server 2008, IIS7.5.  We are also using SSL so from what I’ve read I will have to recompile all these swfs with some changed XML config files.  But of course, the first step is getting the app into FlexBuilder.

    Thanks for the reply drkstr_1. I've got IIS working (I think) since the CF app comes up fine and I can surf about.  It's the flex grids I have that won't work. I get: "Destination 'ColdFusion' not accessible over channel 'my-cfamf-secure'".  Actually, the flex grids DO work with http, but they don't work using https.  I had found information to add secure channel info to the remoting-config.xml and services-config.xml files.  Once those channels are added, I need to recompile the swfs.  But first is to get the project into this new laptop FlexBuilder.  I'm using C:\inetpub\wwwroot for my websites.  And here is what I'm trying to follow for the recompiling and reconfiguring: http://blog.crankybit.com/flex-remoting-over-ssl/

  • 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

  • Flex with java compilation

    hi
    i have done flex project which contains a videoplayer and some informations.
    i have used j2ee server using lcds.
    when i run a build.xml file that time the following error occurs
    Buildfile: E:\Documents and Settings\Kavi Priya\Adobe Flash Builder 4\VideoPlayer\build.xml
    Trying to override old definition of datatype resources
    prepare:
        [mkdir] Created dir: E:\Documents and Settings\Kavi Priya\Adobe Flash Builder 4\VideoPlayer\build
        [mkdir] Created dir: E:\Documents and Settings\Kavi Priya\Adobe Flash Builder 4\VideoPlayer\build\WEB-INF
        [mkdir] Created dir: E:\Documents and Settings\Kavi Priya\Adobe Flash Builder 4\VideoPlayer\build\WEB-INF\classes
        [mkdir] Created dir: E:\Documents and Settings\Kavi Priya\Adobe Flash Builder 4\VideoPlayer\build\html
         [copy] Warning: META-INF\MANIFEST.MF modified in the future.
         [copy] Warning: WEB-INF\flex\messaging-config.xml modified in the future.
         [copy] Warning: WEB-INF\flex\proxy-config.xml modified in the future.
         [copy] Warning: WEB-INF\flex\remoting-config.xml modified in the future.
         [copy] Warning: WEB-INF\flex\services-config.xml modified in the future.
         [copy] Warning: WEB-INF\lib\backport-util-concurrent.jar modified in the future.
         [copy] Warning: WEB-INF\lib\cfgatewayadapter.jar modified in the future.
         [copy] Warning: WEB-INF\lib\commons-codec-1.3.jar modified in the future.
         [copy] Warning: WEB-INF\lib\commons-fileupload-1.2.1.jar modified in the future.
         [copy] Warning: WEB-INF\lib\commons-httpclient-3.0.1.jar modified in the future.
         [copy] Warning: WEB-INF\lib\commons-io-1.4.jar modified in the future.
         [copy] Warning: WEB-INF\lib\commons-logging.jar modified in the future.
         [copy] Warning: WEB-INF\lib\concurrent.jar modified in the future.
         [copy] Warning: WEB-INF\lib\flex-messaging-common.jar modified in the future.
         [copy] Warning: WEB-INF\lib\flex-messaging-core.jar modified in the future.
         [copy] Warning: WEB-INF\lib\flex-messaging-opt.jar modified in the future.
         [copy] Warning: WEB-INF\lib\flex-messaging-proxy.jar modified in the future.
         [copy] Warning: WEB-INF\lib\flex-messaging-remoting.jar modified in the future.
         [copy] Warning: WEB-INF\lib\mxmlc.jar modified in the future.
         [copy] Warning: WEB-INF\lib\xalan.jar modified in the future.
         [copy] Warning: WEB-INF\web.xml modified in the future.
         [copy] Warning:  modified in the future.
         [copy] Warning: META-INF modified in the future.
         [copy] Warning: WEB-INF modified in the future.
         [copy] Warning: WEB-INF\classes modified in the future.
         [copy] Warning: WEB-INF\flex modified in the future.
         [copy] Warning: WEB-INF\lib modified in the future.
         [copy] Warning: WEB-INF\src modified in the future.
         [copy] Copying 24 files to E:\Documents and Settings\Kavi Priya\Adobe Flash Builder 4\VideoPlayer\build
         [copy] Copied 9 empty directories to 1 empty directory under E:\Documents and Settings\Kavi Priya\Adobe Flash Builder 4\VideoPlayer\build
         [copy] Warning: AC_OETags.js modified in the future.
         [copy] Warning: assets\namastecue.flv modified in the future.
         [copy] Warning: history\history.css modified in the future.
         [copy] Warning: history\history.js modified in the future.
         [copy] Warning: history\historyFrame.html modified in the future.
         [copy] Warning: icons\16calendar.gif modified in the future.
         [copy] Warning: icons\16chat.gif modified in the future.
         [copy] Warning: icons\16clock.gif modified in the future.
         [copy] Warning: icons\16dairy.gif modified in the future.
         [copy] Warning: icons\16files.gif modified in the future.
         [copy] Warning: icons\16mail.gif modified in the future.
         [copy] Warning: icons\16minus.gif modified in the future.
         [copy] Warning: icons\16minus.png modified in the future.
         [copy] Warning: icons\16news.gif modified in the future.
         [copy] Warning: icons\16next.gif modified in the future.
         [copy] Warning: icons\16pad.gif modified in the future.
         [copy] Warning: icons\16percent.gif modified in the future.
         [copy] Warning: icons\16percent.png modified in the future.
         [copy] Warning: icons\16plus.gif modified in the future.
         [copy] Warning: icons\16plus.png modified in the future.
         [copy] Warning: icons\16previous.gif modified in the future.
         [copy] Warning: icons\16previous.png modified in the future.
         [copy] Warning: icons\16tag.gif modified in the future.
         [copy] Warning: icons\16tag.png modified in the future.
         [copy] Warning: icons\32calendar.gif modified in the future.
         [copy] Warning: icons\32calendar.png modified in the future.
         [copy] Warning: icons\32chat.gif modified in the future.
         [copy] Warning: icons\32chat.png modified in the future.
         [copy] Warning: icons\32clock.gif modified in the future.
         [copy] Warning: icons\32clock.png modified in the future.
         [copy] Warning: icons\32dairy.gif modified in the future.
         [copy] Warning: icons\32dairy.png modified in the future.
         [copy] Warning: icons\32files.gif modified in the future.
         [copy] Warning: icons\32files.png modified in the future.
         [copy] Warning: icons\32mail.gif modified in the future.
         [copy] Warning: icons\32mail.png modified in the future.
         [copy] Warning: icons\32minus.gif modified in the future.
         [copy] Warning: icons\32minus.png modified in the future.
         [copy] Warning: icons\32news.gif modified in the future.
         [copy] Warning: icons\32news.png modified in the future.
         [copy] Warning: icons\32next.gif modified in the future.
         [copy] Warning: icons\32next.png modified in the future.
         [copy] Warning: icons\32pad.gif modified in the future.
         [copy] Warning: icons\32pad.png modified in the future.
         [copy] Warning: icons\32percent.gif modified in the future.
         [copy] Warning: icons\32percent.png modified in the future.
         [copy] Warning: icons\32plus.gif modified in the future.
         [copy] Warning: icons\32plus.png modified in the future.
         [copy] Warning: icons\32previous.gif modified in the future.
         [copy] Warning: icons\32previous.png modified in the future.
         [copy] Warning: icons\32tag.gif modified in the future.
         [copy] Warning: icons\32tag.png modified in the future.
         [copy] Warning: icons\Thumbs.db modified in the future.
         [copy] Warning: icons\alternative_energy.gif modified in the future.
         [copy] Warning: icons\alternative_energy.png modified in the future.
         [copy] Warning: icons\butterfly.gif modified in the future.
         [copy] Warning: icons\butterfly.png modified in the future.
         [copy] Warning: icons\cloud.gif modified in the future.
         [copy] Warning: icons\forward.png modified in the future.
         [copy] Warning: icons\icon_profile_graduate.gif modified in the future.
         [copy] Warning: icons\icon_profile_graduate.png modified in the future.
         [copy] Warning: icons\icon_profile_man_emp.gif modified in the future.
         [copy] Warning: icons\icon_profile_man_emp.png modified in the future.
         [copy] Warning: icons\icon_profile_woman_emp.gif modified in the future.
         [copy] Warning: icons\icon_profile_woman_emp.png modified in the future.
         [copy] Warning: icons\icon_progress.gif modified in the future.
         [copy] Warning: icons\icon_progress.png modified in the future.
         [copy] Warning: icons\idea_icon.gif modified in the future.
         [copy] Warning: icons\idea_icon.png modified in the future.
         [copy] Warning: icons\imagelast1.png modified in the future.
         [copy] Warning: icons\leaf.gif modified in the future.
         [copy] Warning: icons\leaf.png modified in the future.
         [copy] Warning: icons\mute.png modified in the future.
         [copy] Warning: icons\next .png modified in the future.
         [copy] Warning: icons\pause.png modified in the future.
         [copy] Warning: icons\pause_grey.png modified in the future.
         [copy] Warning: icons\pausenew.png modified in the future.
         [copy] Warning: icons\play.png modified in the future.
         [copy] Warning: icons\play_big.png modified in the future.
         [copy] Warning: icons\play_grey.png modified in the future.
         [copy] Warning: icons\playicon.png modified in the future.
         [copy] Warning: icons\prev.png modified in the future.
         [copy] Warning: icons\repeat.png modified in the future.
         [copy] Warning: icons\replay.png modified in the future.
         [copy] Warning: icons\rewind.png modified in the future.
         [copy] Warning: icons\save_fuel.gif modified in the future.
         [copy] Warning: icons\stop.png modified in the future.
         [copy] Warning: index.html modified in the future.
         [copy] Warning: playerProductInstall.swf modified in the future.
         [copy] Warning:  modified in the future.
         [copy] Warning: assets modified in the future.
         [copy] Warning: history modified in the future.
         [copy] Warning: icons modified in the future.
         [copy] Copying 89 files to E:\Documents and Settings\Kavi Priya\Adobe Flash Builder 4\VideoPlayer\build\html
    build:
        [javac] Warning: vid\DAOException.java modified in the future.
        [javac] Warning: videocue\videoServiceDAO.java modified in the future.
        [javac] Warning: videocue\videoVO.java modified in the future.
        [javac] Compiling 3 source files to E:\Documents and Settings\Kavi Priya\Adobe Flash Builder 4\VideoPlayer\build\WEB-INF\classes
    BUILD FAILED
    E:\Documents and Settings\Kavi Priya\Adobe Flash Builder 4\VideoPlayer\build.xml:79: Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK.
    It is currently set to "E:\Program Files\Adobe\Adobe Flash Builder 4\jre"
    Total time: 500 milliseconds
    how i rectify this problem
    regards
    athi

    Hi,
    Please fallow following link
    http://www.adobe.com/devnet/flex/articles/flashbuilder_blazeds.html
    thanks,
    atul ([email protected])

  • Secure Flash Remoting from main.asc not returning a result

    Hi, Iv got a problem here that could be Flash Remoting or
    Flash Media Server related
    I have created an application that uses flash media server
    and flash remoting.
    For authentication in my app I used Kevin Towes suggested
    method "Secure Authentication with Flash Communication Server:
    Using Tickets and Flash Remoting MX." His article is here
    Download
    PDF Here
    Now to the problem...
    My application has no problem connecting to coldfusion using
    flash remoting with the defaultGateway url set to
    "https://www.mysite.com" (ie over SSL)
    However In main.asc, on the Flash Media Server
    When Flash Media server attempts to validate the login by
    connecting to CFMX using flash remoting it gets no response when
    using a secure gateway url. If I set the default gateway url to
    just
    http://www.mysite.com it works
    great.
    Why do I not get any response when using https as my gateway
    url from Flash Media Server?
    thanks

    Sounds like you need to enable mappings for your remoting
    gateway. I'm not sure if it's the same as Flex, but here's what you
    might need to do, or something similar...
    In c:\cfusion8\wwwroot\WEB-INF\flex\remoting-config.xml (or
    wherever CF is installed) look for the <use-mappings> node
    and set the value to true. You will need to restart CF

Maybe you are looking for