Beginners question - can BlazeDS do this?

I am looking at BlazeDS to see if it is suitable for my project. I have a Java application that provides a service and I know I can install Blaze into that application. What I also want to do is provide a Flash client that I can give to people so that the Flash client can communicate with my Java application. When I give the Flash client to people they won't be installing it on a server with any specific configuration - it will simply sit in a HTML page, on its own with no blaze specific support (no additional jars, no Blaze config etc.). Will the Flash client be able to communicate with my Java app using BlazeDS? My research so far tells me it won't work as the Flash client needs the BlazeDS code base. Is that correct?

I think I have found that it is actually possible. I installed the BlaseDS turnkey version and copied the samples/testdrive-webservice/index.html to ~/Desktop/index-test.html and then modified a few parameters and it seems to work fine. The only parameter in the whole file that I need to change is the:
// if we've detected an acceptable version
// embed the Flash Content SWF when all tests are passed
AC_FL_RunContent(
        "src", "main",
which becomes :
// if we've detected an acceptable version
// embed the Flash Content SWF when all tests are passed
    AC_FL_RunContent(
            "src", "http://localhost:8400/samples/testdrive-webservice/main",
and that was it. It looks like I should also change the references to main.swf to point to the same location and also the AC_OETags.js in the header but they were't required in this case.

Similar Messages

  • Can BlazeDS Do This?

    I seem to be having problems fitting the needs of my application to the capabilities of BlazeDS. Namely, my application needs to be able to do the following:
    1) Know who is connected to a particular destination. For example, certain actions need to be performed only when there are a certain number of subscribers (or even when certain subscribers in particular are subscribed). It seems that this is not trivial in BlazeDS. Anyone have any advice here?
    2) Send messages to client's when they first connect. I can create a custom MessageClientListener, but when the messageClientCreated method is invoked, I am not yet able to send a message to the new MessageClient. Is this possible? I have heard about the unsupported method routeMessageToMessageService, but it is pretty messy and has no documentation. Is there a way to know when a client is first able to receive messages through the standard routeMessageToService?
    3) Point to point messaging (queue messaging). I have several cases where I need to push data to a single client only. I can create a single destination for each client (or use subtopics) but I still run into problems arising from points 1 and 2.
    Can BlazeDS do these things cleanly? Any help on these points would be much appreciated.
    Thanks,
    Gordon

    Mete Atamel wrote:
    MessageDestination destination = (MessageDestination) getDestination(message);
              SubscriptionManager subscriptionManager = destination.getSubscriptionManager();
              Set subscriberIds = subscriptionManager.getSubscriberIds();
    Hi,
    what is "message" ?
    Do you like to post a example for getting all subscribed users please?
    I started with the following biut with less success yet:
    [JAVA]
    public List getSubscribedUsers() {
       String serviceId = "message-service";
       MessageBroker broker = MessageBroker.getMessageBroker(null);
       MessageService service = (MessageService) broker.getService(serviceId);
       service.getSubscriberIds(message,true);
       return users;
    [JAVA] 
    Have a nice day!
    dl

  • Quick Question - Can I add this AMD Phenom X4 9950 to my motherboard

    Hi
    Can I add this processor ( http://www.ebuyer.com/product/150466 ) to my new rig below ?
    Oh and what cooling fan should I get ( http://www.ebuyer.com/store/Components/cat/Cooling-Fans ) incase I want to overclock ?
    Thanks

    Quote from: Henry on 14-December-08, 10:32:29
    Have a look for yourself, no Phenom/quads listed >> K9N Neo V3 CPUs <<
     Edit: Best you can do is 89W X2 6000+
    Ok cool - I take it this is ok then: http://www.ebuyer.com/product/149211  ??
    Still stuck on what cooler to get for it ( http://www.ebuyer.com/store/Components/cat/Cooling-Fans ) for overclocking ?
    [I'm saving up for i7 but needed a wee boost in the mean time]

  • Newbie Question: Can Flash do this?

    I would like to make some movies (whatever format would load
    the quickest on a website and produce the smallest file size) that
    show the stroke order and formation of Chinese characters.
    The viewer would see something like an animated GIF that
    shows the character being formed on the screen
    Can Flash be used in conjunction with a Wacom Tablet (or
    mouse, for that matter) to do this? If so, how would I do this--I'm
    a total newbie with Flash.
    If it can't can anyone suggest a program that could do this??
    I have the Adobe Master Collection, so I have access to all the
    programs.
    Thanks.

    Flash can do it, but not quite the way you're approaching it,
    I think. I would start with the complete character on the stage and
    use a series of animated masks to reveal the strokes in sequence,
    to make them 'appear' like they are being drawn.
    There are some other ways to go about this as well, but this
    would be the simplest by far.

  • HT5312 i am not recieving my mails from your site i need to change my security questions. can u fix this problem thanks.

    i cant change my security questions. i forgot them.
    if i press on send them with mail to me i am not recieving any mail not in spam too.
    goes same for my password i just dont recieve a mail at al.. please solve this and answer me fast as possible.
    thank u greetings.

    This is a user forum not Apple.
    You need to contact App Store Support:
    http://www.apple.com/support/mac/app-store/contact/

  • Web Architecture Question- Can I do this?

    I have an application which is using cookies and client variable to process/track user activity in a cluster-server environment. A user basically is able to see one client at a time and each client has its own database.  I know if you have multiple email accouts in Hotmail, Yahoo, etc, you can only access one at time in the same manner.
    BUT I am wondering if there is a way for the user to access multiple clients at the "same time", meaning, one browser page is client A, one browser page is client B, one browser page is client C, etc.  If the user has the access right to all clients, logically he can open any two or more clients and does his CRUD.
    Can this be achieved?
    Thanks

    Hi
    Actually I thought of a way you could do this without special codes you have to track.
    All you have todo is manually set path cookie values for CFID and CFTOKEN, and use URL rewriting (mod_rewrite for apache, or isapi rewrite for iis).
    In your cfapplication tag you can disable the automatic creation of the cookie values for CFID and CFTOKEN:
    <cfapplication setclientcookies="no" ......
    Then create the cookies with something like this (this example assume clientmanagement is being used):
    <cfif not IsDefined("Cookie.CFID") or Cookie.CFID eq "">
        <cfheader name="Set-Cookie" value="CFID=#client.CFID#;HTTPOnly;path=/clientXXX/">
        <cfheader name="Set-Cookie" value="CFTOKEN=#client.CFTOKEN#;HTTPOnly;path=/clientXXX/">
    </cfif>
    clientXXX different for every different client instance you like.  Then all you need is a super simple URL rewrite removing the clientXXX part.
    So the browers url might look like: http://www.yousite.com/clientXXX/index.cfm, the server will actually serve the request from http://www.yousite.com/index.cfm.  But the cookie will be set for www.yousite.com/clientXXX and not www.yousite.com
    Cheers

  • When i ask a question on ebay and send, when i try to back tab it keeps insisting on resend how can i turn this off?

    you search items on ebay,ask a question of the seller and send it, i then want to return to my listing and the searched items, but firefox will only let me do this if i resend my question every time, it means all the messages i send asking a question are duplicated, how can i turn this annoying protocol off?

    Feedback? Did any of this help?

  • Can anyone answer this question? What is used to format a string so that it falls into a certain Row/Column in excel? see text for indepth question.

    I'm attaching a file that may help. Just remember this is my FIRST attempt at using NI/FeildPoint so things that would be obvious to the normal users more than likely would slide right by me. So I'll try and explain what the text contains as to make my problem more clear. I'm using a FP-1000, FP-AI-100, and a FP-TB-10. i'm creating a application where I'm using the 8 channels from the FP-AI-100 to monitor a control system ,that we manufacture. The control system is in an environmental chamber. I use the FP-TB-10 to monitor the temperature while in the chamber. The control system is ran for 4 hours under varing enviromental conditions while I monitor vital system voltages with the FP-AI-100. Now the application that i'm building starts with the obvious FP CREATE.VI and so forth I have no problem communicating with the FP's, but the information that I'm monitioring needs to be placed into a file with Headers describing the information below it. Now I use a "WHILE LOOP.VI" to monitor the FP-AI-100 & FP-TB-10 for the 4 hour period. but before that I create and open a file where I use a "CONCATENATE STRINGS.VI" to enter the headers I need. I do this by CONSTANTS, CONTROLS, TABs, AND CARRIAGE RETURN being entered into the "CONCATENATE STRINGS.VI" in the order I want them to appear. I use ROW 1 to enter (OPERATOR:with a CONSTANT) an a (CONTROL so the operator may enter his name and be recorded into the file) using a TAB to seperate Columns and a CARRIAGE RETURNto drop down to ROW 2 for the next headers. I use header names and TABs to seperate the columns. This part works great. I end up with ROW 1 having the operator information then ROW 2 having the headers for all the channels I'm using to monitor the control system with in their own column. The trouble happens when I write to this file during the "WHILE LOOP". The information recorded for DATE:, TIME:, and Channel 0 of the FP-AI-100 end up right under their corresponding header on ROW 3, but the rest of the data ends up on ROW 4 in column 3 and goes down many rows with some of the data not being stored at all. It varies on how many rows are used starting at ROW 4 but hey always stay in column 3. I use the "FP READ.VI" outputing to a "ARRAY TO SPREADSHEET STRING.VI" outputing to a "CONCATENATE STRINGS.VI" for each channel within the "WHILE LOOP" then into the "WRITE.VI". I use the "CONCATENATE STRINGS.VI" to place my data OR atleast I thought you could do that some how I'm not quit doing something write either there is a sampling/timing issue or writing to file issue where things are being confused in the "WHILE LOOP" if someone know a better route to perform what I'm tring here I would be interested. Its not like I'm not giving it the old colledge try here but without proper training and the vagness of the manuals it's difficult to understand what every connection actually does.I'm tring though for everyone who happens to fill pity for me
    Thanks for your help
    John Morris
    Glendinning Marine Product, Inc.
    Attachments:
    ALLchannels ‏273 KB

    > I appreciate your effort to help me, but there is still a slight cloud
    > in front of my eyes here.(I must mention that I'm using Labview 5.1
    Oh, to bad. I'm using LV 6,02 and tried to save the application as LV5.1,
    but it didn't work.
    > Lets start with the easy one which is the SECOND main thing you
    > wanted to mention. In my application I used individual Create Tag.vi's
    > "so your saying that I can use just one Create Tag.vi and one Read.vi
    > and what ever I use to display the values will automatically to show
    > the individual channels" in other words if I use a "Indicator(DBL)"
    > comming out of the Read.vi what ever I use in the "PANEL" layout will
    > expand to show all 8 channel if I was using a FP-AI-100? Cool...
    Allmost right. The 8 channels come out as 1D-array, ch0...ch7.
    > #1--How do I change the delimiter (TAB) to a delimiter (comma) in a
    > Array to Spreadsheet String.vi?
    > ...cut
    I don't use this Spreadsheet VI, because files coming out there allways
    start this time consuming EXCEL wizzard. Because of this, I programmed my
    own CSV-conversion vi. Maybe you could just use a common texteditor, like
    wordpad and put the csv-examples from my last reply down to a text file
    and rename it to *.csv. Texteditors terminate lines with "\r\n" by
    default, so this is a very quick way for testing.
    > FP_Analog_Logging example to record all eight channels it uses a Array
    I didn't find the vi you metione above, but there is another good one:
    Look at examples\FieldPoint\DataLogging\FP Logger.vi.
    In a little case structure, at "false", there is a function called "Format
    into string".
    Pop up on the format string and adjust >>'\' Codes Display<<.
    Then you change the format string into: %.;%-f%s
    A Tab string is connected to the lower input of this function. Replace
    this one with a comma.
    That should do.
    >
    > #2--If using just one Create Tag.vi and one Read.vi and I have the
    > Item Name listed as ALL I take it that the information comming out of
    > the Read.vi is data for each channel in a String format starting with
    > channel 0 and ending with channel 7 for the FP-AI-100.
    Yes, just as explained above. If you put a indicator at the output to
    display the values, you can expand the display to show all 8 channels, but
    you can't name induvidual cells. In a array, all cells have identical
    named labels. If you want to name the individually, you have to attach the
    array to cluster function and put the indicator after this one. Enable
    labe display and name the output values individually.
    > #3--Now I use the following to "Format String" in the Array to
    > Spreadsheet string.vi (%.4f)but I don't see anyway of changing the
    > delimiter from (TAB) to (COMA)
    Explained above.
    > #4 you stated text strings need a "as prefix and sufix" and each
    > string is seperated by a coma, a period is used as decimal number
    > separator and lines have to be terminated by my question is
    > WHERE IS THIS ACCOMPLISHED? WHAT VI OR WHAT CONNECTOR PIN?
    Well, modifying strings are done with string functions.
    Above, as I explained how the sample FP Logger.vi can be modified to do
    the job for numbers. The pre- and suffixing with ", you only need for
    strings, which EXCEL should interpret a string and as nothing else as a
    string, even if there's a number inside. You usually need this only for
    headers. So its easyest, if you just write your string into a string
    constant or control and concatenate it to the previous csv-file contents.
    Oh, I just see by looking at the above mentioned example... Inside the
    case structure, but in the "true" case, there are error messages
    concatenated to the logfile. At this point it is importent, to use " for
    integrating the message into the CSV file, because a error message usually
    looks like this: >> ERROR 2345 in vi yxz <<
    Here you have text and number strings mixed in one line. EXCEL does not
    know, if it should interpret the number inside the error line as separate
    number, separating the line into three colums i.e. string before number,
    number and string after number. So tell EXCEL by putting a " before and
    after the line each.
    For this, expand the Format To String function by one input, move down all
    connections, to be able to insert a string constant with a " to the first
    argument connector. Change the contents of the string constant at the
    bottom argument from tab to ", (quotation mark AND comma)
    > #5 You gave me an example of what a 3 column header could look like:
    > "col0","col1","col2"\r\n Now is this something that you enter
    > somewhere cause I know that \r is carriage return and \n is newline so
    > I take it that the above is entered somewhere maybe in the Write.vi to
    > the connector called Header (F)? See this is what confuses me because
    > NI manuals have no examples of certain connectors types being used or
    > any reference as to how they manipluate data with there varing type
    > inputs. Or maybe I'm just missing them.
    The example I mentioned above help here to.
    Look at the Write File function. This function receves data from a
    function named concatenate strings. Expand this function to have one more
    spare input at the bottom. Create a string constant. Switch the constant
    display to "\" mode. Enter "col0","col1","col2"\r\n into the constant.
    Connect the constant to the spare input.
    Doing this, every dataline in the csv file is followed by
    "col0","col1","col2"\r\n .
    I wish you a nice weekend,
    Rainer Ehrt

  • I have two apple ID's but cannot remember the security question answers and the email address is no longer active - how can I access this account

    I have two apple ID's but cannot remember the security question answers and the email address is no longer active - how can I access this account as it seems to be the one my icloud space is attached to.  I haven't backed up my ipad or photos for a while. 

    Security questions:
    https://discussions.apple.com/docs/DOC-4551
    http://support.apple.com/kb/HT5312
    If you don’t know your security questions, phone Apple (using the number listed here:  http://support.apple.com/kb/HE57  ) and ask for the Account Security Team.
    About 2-step verification of your Apple ID:
    http://support.apple.com/kb/ht5570
    This is also useful:
    http://www.macworld.co.uk/ipad-iphone/news/?newsid=3463233&olo=email

  • Simple question:  I want to use iCloud as a back up disk for my documents folder.  How can I do this?  If I cannot do this, why am I paying for access to "the cloud?"

    Simple question:  I want to use iCloud as a back up disk for my documents folder.  How can I do this?  If I cannot do this, why am I paying for access to "the cloud?"

    iCloud does not provide general file storage or backup, so you cannot back up your Documents folder using it. You will need to find a third-party alternative - this page examines some options (some are free):
    http://rfwilmut.net/missing3
    iCloud at basic level, with 5GB is storage, is free: you only pay anything if you want to increase the storage space.

  • HT204053 How can I delete my iCloud account which I do not remember anything about the information that I entered about 4 years ago. It always asks my birth date but it seems I did not enter my correct date how can I bypass this question???

    How can I delete my iCloud account which I do not remember anything about the information that I entered about 4 years ago. It always asks my birth date but it seems I did not enter my correct date how can I bypass this question???

    You cannot delete the account from the server (partly to prevent the username from becoming available again and some-one else using it to pretend to be you).. Having disengaged your devices from it, go to http://icloud.com and delete any data in there such as contacts and calendars. Then just ignore it.

  • I own a MAC Pro 3,1 (early 2008) and am running Mavericks 10.9.3 with no problems. I would like to add an I/O card to add USB 3 functionality or ESATA functionality but am unable to find a compatible card. As such my question...can I do this and if so wha

    I own a MAC Pro 3,1 (early 2008) and am running Mavericks 10.9.3 with no problems. I would like to add an I/O card to add USB 3 functionality or ESATA functionality but am unable to find a compatible card. As such my question...can I do this and if so what is the best card?
    Thank you

    Have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"?
    Also see:
    https://discussions.apple.com/thread/6282459?tstart=0

  • My wife's iTunes ID will no longer work.  Tried to reset password but did not get email, tried to reset by answering personal questions' but will not accept the correct date of birth.  Has it been hacked?  How can I fix this?

    My wife's iTunes used ID will not work.  Tried resetting the password, but email was not received.  Tried using personal questions method, but would not accept the correct date of birth, so could not go any further.  Has her iTunes ID been hacked?  How can I fix this?

    Thanks for that advice @randers4.
    I linked through and submitted my info as a "topic not covered" in the iCloud section. After entering the serial number of my MBP it turns out I wasn't eligible for technical support (though I don't think this is hardware related support) and the final suggestion was to take my computer into an Apple store. I called my local Apple reseller and asked for assistance. The customer service rep was very nice but unable to help, so suggested I call Apple Support on 1300 321 456. I did so and, again, spoke to two very polite and helpful customer service people (I was transferred to security services). I didn't have to be on hold to speak to either rep for more than a few seconds! After trying a few different things, he worked out what was happening...
    So, to cut a long story short, to solve the problem in my OP, all I had to do was log out of iCloud in my System Preferences and log back in using my current Apple ID. [Edited to add that I had to sign out of everything I was currently signed in to with my Apple ID before logging out and in again.]
    Problem solved!
    Message was edited by: NotBaconBits

  • I currently have an old version of Photoshop Elements, it is version 5.0.  I recently upgraded from my old Windows XP computer to a new Windows 7 computer.  My question is:  Can I install this version 5.0 on my new windows 7 computer without any problems?

    I currently have an old version of Photoshop Elements, it is version 5.0.  I recently upgraded from my old Windows XP computer to a new Windows 7 computer.  My question is:  Can I install this version 5.0 on my new Windows 7 computer without any problems?  my email is:  [email protected]  Thank you!

    Do not know about 5, but, just installed PE 6 on I7 64 bit and it works.

  • Hello! The question is this. In London, took the Iphone 5 as sim free, flew to Moscow put Simcoe, and he writes me that is locked to the operator O2. Can anyone encountered this problem? What to do? How to remove the Unlock?

    Hello! The question is this. In London, took the Iphone 5 as sim free, flew to Moscow put Simcoe, and he writes me that is locked to the operator O2. Can anyone encountered this problem? What to do? How to remove the Unlock?
    <Edited by Host>

    Look at your receipt. Does it say unlocked? It is possible to purchase both locked "sim free" and unlocked iPhones from Apple.
    ONLY the carrier an iPhone is locked to can legitimately unlock it.
    IF your receipt says that it was supposed to be unlocked, and it is not, call AppleCare. They should be able to straighten it out.

Maybe you are looking for