Sends the data backend Java

What is the best way to send a flex object to a java backend and then do something about this on the server? I have a table that contains a custom class. When the user clicks on send, I want to send the picture to Java, then get the content of the table to handle the content and write it to a file.

I have a remote Java object I want to send the data, in order to manipulate it. I don't think that I need a remote object to represent the purpose of flex, but because that would mean that whatever changes I do object in flex continually is sent to the back-end right? I want to just send it in one appointment once the user has finished editing on the front-end server.

I found XML serializers that people did that recursively go through the object and create XML. It must then be deserialized on the coast of Java. I thought that there must be an easier way. Is there a library or something for this?

Perhaps, I do not understand the reason for your implementation so don't take no not this personally.  But why would you send a Canvas object, which is part of the view on the server?  If you are only wanting to send the data contained in the text to the server for processing objects you want to do is create a ValueObject (TransferObject for some) and send it to the server, as well as perhaps instructions you want to send.

On the other hand (and this is just a blind guess at what you're trying) If you are wanting to send the objects so that you can implement some sort of compilation side server, then you want to send the object to plain text for the Web as one of the settings contained in your ValueObject.  Alternatively, you can use Adobe AIR and zip all of the defined object and send the file to the server where it can be decompressed and compiled.

Here is a blog post on data transfer between Java and Flex using RemoteClass.

ATA-transfer-objects-from-Java-to-Flex/ http://pachamuthu.wordpress.com/2009/07/15/using-BlazeDS-to-Send-User-Defined-Data-types-d

I hope this helps.  If this isn't the case, then perhaps a little more information on what you are trying to accomplish might help.

-Joe

Tags: Flex

Similar Questions

  • should which product I buy to be able to save and send the data entered in a form?

    Hello, should what product I buy to be able to save and send the data entered in a form?

    Hi clarka14179614,

    If you are referring to record and send after filling out a form, you can either use an Adobe Reader or Acrobat application.

    Adobe Reader is a free service and you can install it here: Adobe - Adobe Acrobat Reader DC Distribution

    Let us know if you need additional assistance.

    Kind regards

    Meenakshi

  • Why convert? What is the advantage? Why convert it before you send the data over the network?

    Hello everyone.

    I have a question quite simple and intuitive. Yet Google does not seam to get the answer.

    Basically, I'm curious why should we catalogued something? It seems to me that it's just a little like a "band-aid" for editing data in conversion to a new data type, when it is not properly declared with an appropriate data type. What would be the advantage of this?

    Furthermore, I see a lot of data type casting to U8 programs before sending it over the network. Various reviews say it's for speed, but I can't understand how it improves speed. The same amount of data is still sent, just in a different type of data. This is overcoming a limitation of the network. The network somehow send smaller data types faster?

    I've been curious about this for a while and have yet to find an answer. Any help is appreciated.

    Thank you
    Taylor S. Amarel

    tsa256 wrote:

    Basically, I'm curious why should we catalogued something? It seems to me that it's just a little like a "band-aid" for editing data in conversion to a new data type, when it is not properly declared with an appropriate data type. What would be the advantage of this?

    It really depends on the specific situations.

    For example, some functions explicitly require certain types of data as inputs if they are not polymorphic.

    This means that if you do not convert the data yourself and you will see a red dot forced LabVIEW will do it for you.

    As to why the data was not the correct data type in the first place, it is sometimes inevitable.

    A few examples

    -What happens if you just read a text file as a long string.

    If there is digital data in this file, you need to analyze, and then convert it to a usable type (int, sgl, dbl, etc.)

    -you are given a 3rd part VI, dll, etc. that returns a numeric value as a double, but you need the value to I8.

    You cannot change the output of the function given to you, so what you can do to remedy this situation is cataloged data.

    tsa256 wrote:

    Furthermore, I see a lot of data type casting to U8 programs before sending it over the network. Various reviews say it's for speed, but I can't understand how it improves speed. The same amount of data is still sent, just in a different type of data. This is overcoming a limitation of the network. The network somehow send smaller data types faster?

    Somehow, this is my first response, but in a more general sense.

    Many functions down to the level of the OS run in binary.

    If your data are not already in binary, the sending computer must convert it to binary, and then send it, have the receiving computer convert in return.

    Two conversions on each side of the transmission add unnecessary delays.

  • Sends the data sequentially to the FPGA to a file during playback

    Hi all

    I am a new user of the Labview FPGA module, and I need your help.

    I have a huge file in my computer and I want to treat my FPGA Module. I have a VI divided into small files first, but to my FPGA I do not know how. My idea is to create two blocks of memory in the FPGA in order to have a structure of Ping-pong, module while the second memory is written the first memory was read and the data is processed.

    The first problem is to forward these data to my blocks (as text and the FPGA does not accept it).

    The second problem is that I don't know if as it is made of wiring will work. Can you help me it wiring? I don't know if data should I wire in the host of the read method will go directly to the data items in the FPGA VI.

    Created memories are 64 MB each. I work with FlexRio.

    Thanks in advance.

    Greetings from King,
    Miguel.

    What you want to do, is create a DMA FIFO to send data down to the FPGA.  Make the data type of the DMA a U8.  Thus, on the side of the host, you just read your data from the file, use the array of strings of bytes and write to the DMA FIFO.  On the side of FPGA, you read DMA FIFO inside a loop TO make your table and then treat.  You may need to use a different DMA FIFO to send data to the host computer.

  • Send the data stored in the variable clob as an attachment

    Hello

    Im trying to send an email with an attachment usinng UTL_SMTP. The following code queries data in the table and stores it in a variable of clob. But he throws ORA-06502: PL/SQL: digital error or value every time that I run it. The data is greater than 32 k. Can someone help me with this

    Create or replace procedure MAIL AS

    BEGIN

    DECLARE

    l_clob CLOB.

    BEGIN

    l_clob: = ' FIRST_NAME, LAST_NAME, ARRANGE_DATE, SLOT_FROM, SLOT_TO, Address1, WORKNUMERO, HOMENUMBER, LAPTOP, employe_id, COST_CENTER;

    FOR c1 IN (SELECT *)

    RESULTS)

    LOOP

    l_clob: =.

    l_clob

    || CHR (10)

    || C1. FIRST NAME

    || ','

    || C1. LAST_NAME

    ||','

    || C1. ARRANGE_DATE

    ||','

    || C1. SLOT_FROM

    ||','

    || C1. SLOT_TO

    ||','

    || C1. ADDRESS1

    ||’,’

    || C1. WORKNUMERO

    ||','

    || C1. HOMENUMBER

    ||','

    || C1. PORTABLE

    ||','

    || C1. EMPLOYEE_ID

    ||','

    || C1. COST_CENTER;

    END LOOP;

    SEND_TRANSPORT_MAIL (p_to = > ' [email protected]', )

                p_from        => ' [email protected] ',

    p_subject = > "Dump."

    p_text_msg = > ' Hi

    p_attach_name = > 'DUMP.csv. "

    p_attach_mime = > "text/plain",

    p_attach_clob = > l_clob,

    p_smtp_host = > 'a.b.c.d');

    END;

    END;

    /

    SQL>begin
      2    dbms_output.put_line( length( rpad( ' ', 32767 ) || 1234 ) );                        -- result in clob with length 32771
      3    dbms_output.put_line( length( rpad( to_clob( ' ' ), 32767 ) || 1234 ) );             -- result in clob with length 32771
      4    dbms_output.put_line( length( rpad( to_clob( ' ' ), 32768 ) || to_char( 1234 ) ) );  -- result in clob with length 32772
      5    dbms_output.put_line( length( rpad( to_clob( ' ' ), 32768 ) || 1234 ) );             -- ORA-06502: PL/SQL: numeric or value error
      6  end;
      7  /
    

    32771

    32771

    32772

    Start

    *

    ERROR on line 1:

    ORA-06502: PL/SQL: digital error or value

    ORA-06512: at line 5

    It looks like to the | default operator using varchar2.

    In line 3 the clob and number are implicit cast to a varchar2, and both are concatenated in a clob

    In line 4 the clob cannot be cast to a varchar2 because it is in the long run, so Oracle varchar2 (with the number) caste implied on the clob type too, that succeeds

    In line 5 the clob cannot be cast to a varchar2 because it's for a long time, so Oracle is trying to get the number to a clob to-online error

  • A result of sending the data to a while loop through another loop of TCP communication

    Hi all

    I have 2 screws

    1 matching model (using the method of Grab) which is put inside a while loop. This VI works correctly and returns a string in a specific format (position and the angle of the object).

    2 TCP server who always listens to a specific port, if it receives a correct command string, it sends the string above VI - 1 (position and angle).

    The two 2 screws works if they are in separate VI. But I want to combine them into 1 single VI and I get the problem: Pattern matching doesn't work anymore (the video has only first frame then stops).

    I tried to put the two while loop in parallel or put the TCP while loop inside while loop Pattern Matching. Nothing has worked.

    Pls see my attached VI and the TCP module.

    What is the solution for requirement?

    Thank you all!

    What I would do, is be your two screws at the same time.  Given that you do not send the last result, store the result in a global variable.  Your comparison models written VI the global variable of the results of each iteration of the loop and the TCP bed module global variable results when it receives the right to order and then send it.

  • Custom DataGridColumn sends the data to the ItemRenderer

    I use the as3 syntax to create a few advancedDataGridColumns and specify to use cusItemRenderer

    by "col.itemRenderer = itemRenderer;". ""

    I have replace the function set the ItemRenderer in the class of AdvancedDataGridColumn customed.

    But the itemrenderer is unable to get the data.

    Is there anyway to get the 'datafield' and 'headerText"DataGridColumn properties in the itemRenderer?

    This is my code:

    / / I create an ItemRenderer to pass to all DataGirdColumns

    var itemRenderer:cusItemRenderer = new cusItemRenderer();

    / / I create some columns

    Col = new AdvancedDataGridColumn (flatColumns [i]. Label);
    col.dataField = "@" + flatColumns [i]. Field;

    col.itemRenderer = itemRenderer;

    public class cusAdvancedDataGridColumn extends AdvancedDataGridColumn
    {
    override public function set itemRenderer(value:IFactory):void {}


    var itemRenderer:cusItemRenderer = value as cusItemRenderer;

    itemRenderer.parentField = this.dataField;
    itemRenderer.parentLabel = this.headerText;


    super.itemRenderer (itemRenderer);

    }


    }

    public class cusItemRenderer extends AdvancedDataGridItemRenderer implements IFactory
    {

    / / They are always null ~!
    public var parentField : String = null;
    public var parentLabel : String = null;

    function public newInstance(): * {}
    return new cusItemRenderer();
    }

    }

    The itemrenderer set went from an Ifactory, not the actual converter class

    or an instance.

    If the rendering engine implements the IDropInListItemRenderer, it should have a

    property columnIndex in the listData which can be used to find the column.

  • Send the data collected by sensors in cell phone android to Labview installed on a PC

    Hello

    My question is if someone knows a way to connect the mobile phone and the PC to share the values of the sensors of a telephone cell phone android (barometer, termomether, gyro, etc.).

    Can you the app DATA dashboard or any other application available on the Android market access data from these sensors and send them by a variable shared PC?

    Any ideas?

    Thanks in advance

    There is an application that allows you to transmit the values via the WiFi via TCP/IP or UDP connection. It is probably the best way to do it (and means that you don't have to write your own. You then just to write LabVIEW code to connect to the phone and listen to /lire data.

    For example - this looks like such an application (but there are many others): https://play.google.com/store/apps/details?id=com.ubccapstone.sensorUDP&hl=en

  • Tiara dac combined with the NI PCIe-6259 does not send the data

    Hello

    I have a card OR PCIe-6259 & DIAdem 11.2.0 (version 2010) on a windows 7 PC.

    Inputs outputs & analog analog + digital are configured in MAX 9.8.0f0. (Global virtual channels)

    When I run a dac, entered analog works perfectly.

    Outputs analog and digital does not work. Only one of the four analog outputs give the value that has been send.

    In the past, I had the same problems with this version of DIAdem in combination with a third party USB card, but this has been resolved by the new firmware & software drivers.

    Someone who has had similar problems?

    Thank you.

    After trying many things, I finally found the solution.

    In the output ==> pilot ==> options pilot "weighting the digital bus" must be verified.

  • Problem in sending the data of graphic writing in words

    I had this problem and it is said that the limit is 4000 rows or columns, someone knows how can I change the limit?

    IM using report generation tools to draw the graph in Microsoft Words

    I have more than 10000 of data that will be used to draw the graph.

    Someone knows how to fix this?

    And also that

  • Send the data of endorsements

    Hi all


    ORCL worm:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    PL/SQL Release 11.2.0.3.0 - Production

    CORE Production 11.2.0.3.0

    AMT for Linux: Version 11.2.0.3.0 - Production

    NLSRTL Version 11.2.0.3.0 - Production

    My requirement:

    I have an XYZ table, whenever the update arrives on the table with the status "Approved" = so I must post these data to downstream systems.

    Table structure:

    Sequence_id
    name
    ID
    status
    1jhdfk12345Approved

    The status will be set initially to "In_progress' then 'State 2', '3 status', 'State 4'... and finally"approved. "

    Whenever the State is updated with "Approved", we store the sequence_id in the header table into a temporary table.

    Currently I have a trigger on the table for every row after update.

    But the trigger is fired for all State if I care just status = "approved".

    There is a packet written to retrieve the present seq ID in a temporary table to pull our child records in the table and publish these data on downstream systems.

    Materialized view and sql_id are other options I could think now.

    I don't have access to the v$ sql. So, I may be wrong here. Apologies in advance.

    Support:

    Schedule a task to run every 10 minutes, I query the metadata table to find sql_text like "update set the status xyx ="Approved"%'"

    I get the sequence_id of the sql_text.

    Certainly it would have been much better to do.

    Please guide me.

    THX

    Shan.

    Hello

    rp0428 wrote:

    .... OK - but Frank FIRST told me to use a WHEN clause in your trigger. ...

    In fact, I posted first approach of YEW.  When OP posted reply #2 (dated 18:08 EDT) I revise my #1 response (which is why it is dated later, at 18:13); at this point, I've added the alternative WHEN.

  • Scrolling on Preview animation does not what its supposed to then sets the design document, also going to the mess of the page master all the link and all the objects in the subpages and sends the data more irrelevant site

    When I use scroll animated: Walker I saw in the browser, it does not work in the x / y position cordinated in design mode. then when I go back to the design mode the object moved permenantly. Also when I extend the master page, then go to edit page with the master page applied to all objects and links are deformed and moved to the top of the page. Why? and also I have some links in the text and the buttons become irregular colours or States without reason then do only what they are supposed to after you press them and return them. ?

    These are common questions of interest because I think for a product, you pay for it should be able to do all the simple things like keeping the objects in place.

    These settings work well for me

  • The user sends text data

    Hello world. I don't know if I'm in the right section.

    I have a Web site designed in Flash. The site has a contact with 3 fields (name, email and message) section. Having completed these fields would be a click 'send' to send the data in a text file that resides on a Linux (Apache), based on the server.

    My question is... Should what action statement I set up?

    Any help-suggestions will be appreciated.

    Concerning

    Fred

    I'll give it a try. Thank you very much Dave.

    Concerning

    Fred

  • Problem with transmission of the data in table between a driver and a method.

    I'm having a problem with a project for school. We want to take the data in a table, we create in our driver, pass it to the method, do something for her and return the data to the driver. Well, I still get the same error message and after looking at dozens of sites, it seems that I think that I have the correct code... but I still get the same error message. Here is the error message that I've been doing.
    * ola1driver.java:35: get() in ola1method may apply to (char [] [])
    x.get (Dar);
    (upwards arrow pointing between x and get) *.

    I'd appreciate any help I'm leaving research to simply looking at my code to try to find the error. My wife things I'm going nuts at the moment.

    Here are my two files, the first is the driver and the second method

    Take a 2D array and send the data to a method, and then put it back
    import java.util.Scanner;
    class ola1driver
    {
    Public Shared Sub main (string args [])
    {
    Entrance to the parser = new Scanner (System.in);
    ola1method x = new ola1method();
    Char [] [] dar = new char [10] [100];
    char dat_input;

    Set up the loop at the entrance a table of 10 x 100 with data imported from a dat file
    for (int i = 0; i < 10; i ++)
    {
    for (int j = 0; j < 100; j ++)
    {
    dat_input = input.next () .charAt (0);
    Dar [i] [j] = dat_input;
    }
    }
    Send the array to the method and displays the original table to compare the return data
    x.Set (Dar);
    for (ip int = 0; ip < 10; ip ++)
    {
    for (int jp = 0; jp jp; < 100 ++)
    {
    System.out.printf ("%n", dar [ip] [jp]);
    }
    }

    To get the data of the method and then print the data in the table opposite
    x.get (Dar);

    for (int r = 0; r < 10; r ++)
    {
    for (int c = 0; c < 100; c ++)
    {
    System.out.printf ("%n", dar [r] [c]);
    }
    }
    }
    }

    Now the method;

    Method to receive a 2D painting, reverse the data and then put it back
    class ola1method
    {
    Char [] [] ar = new char [10] [100];
    Char [] [] rar = new char [10] [100];

    public void set (char [] [] ar)
    {
    / * To reverse the entries in the table
    to prove that real return
    data was transferred between the driver
    and the method * /
    IR int = 0;
    for (int i = 9; I have > 0; i-)
    {
    for (int j = 100; j > 0; j-)
    {
    int jr = 0;
    RAR [ir] [Jr.] is ar [i] [j];.
    Jr ++;
    }

    IR ++;
    }
    }
    Return the data to the driver
    public char [] [] get()
    {
    return of rar;
    }
    }

    Published by: Seamus on February 20, 2011 08:25

    Published by: Seamus on February 20, 2011 08:26

    Seamus wrote:
    I thought that I sent my method by using the x.set table, and then by calling the reversed with the x.get table.

    x.Set (someArray) in fact to 'send an array to the method '.

    And if x.get () is declared to return an array, then, Yes, it indeed 'retrieve a table. "

    However, these are two completely different methods. The get method doesn't know something on the table sent via the set method unless the game puts a place who knows himself. For example, something like this:

    public class X {
      private int[] arr;
    
      public void set(int[] arr) {
        this.arr = arr;
      }
    
      public int[] get() {
        reverse arr and return it
      }
    }
    
    public class Main {
      public static void main(String[] args) {
        int[] arr1 = {1, 2, 3};
        X x = new X();
        x.set(arr);
        int[] arr2 = x.get();
      }
    }
    

    However, this seems a bit unusual. It is not clear from your initial post, but looks like it is supposed to be a single method that takes the array and it reverses. If so, you could either simply invert the table and returns nothing, since the variable of the appellant and the parameter of the method will all be pointing to the same table object, or you could return a reference to the table that you have received and reversed, or you can copy the table, reverse the copy and return a reference to that.

    I don't know what your needs are, but the point is that it is more common to call a single method to do something like that, rather than separate set() and get() methods.

    Edited by: jverd February 20, 2011 09:36

    Edited by: jverd February 20, 2011 09:37

  • Send the command to laser sensor via a serial port RS232

    Hello

    I have a sensor of moving Laser of OPTEX FA Co., LTD. with a Communication Manual.pdf file attached. I modified the sample base series write and Read.vi of LV to send the command to the probe in order to receive a response. However, LV always returns an error on my VISA Write.

    In short, the structure of command for the sensor must have a form like this

    STX-command command-space-1 2 - ETX

    (more can be see the manual on page 3 or 18 of the .pdf file)

    where

    -STX: code showing the head of transmit data (02 H)

    -Command 1, 2: could be refers to table 1, 2 and 3 of the manual.

    -ETX: code illustrating the completion of data transmission (03H)

    For example, if I want to ask the sensor to send the data from A sensor head, the command must be

    STX-ABLE () A - ETX

    (20H) space is shown as ().

    I tried to send a string HEX (02 - 4 d 454153555245-20-41-03) for this command to the entry VISA, but all I get is ERROR.

    I enclose with this thread my vi and a printscreen of the ERROR.

    A lot a lot of appreciation for any help from any of you.

    I have my LV code can run successfully. He can read the COMMAND and return measurement data. The last time does not playback VISA because I used a cable RS232 to opportunity, and someone operated two pins (2 and 3) for another application.

Maybe you are looking for