locked
Pass an ArrayList from C# to Java Application , and then return it.

    Question

  • Hi all,

    I have developed a program in C#, but I need some data that must be get using a Java Application based on the sample presented at:

    I have data in my C# program that kept in an ArrayList and need to be processed in the Java Application to retrieve its results, and then re-passed it again to the C# program to continue the processing with the results of the Java Application.

    Please help me, how to do so.

    Thanks so much in advance.

    Aya.


    Aya Zoghby

    Saturday, November 24, 2012 7:02 PM

Answers

  • Hi Aya,

    Welcome to the MSDN Forum.

    You need medium carrier.

    Option 1, you can make a web service, this web service will call the Java function.

    Option 2, write the data in a file and read it by Java appliction, when finished, write it back to the file.

    You can also try any other way which works.

    Best regards,


    Mike Feng
    MSDN Community Support | Feedback to us
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, November 26, 2012 6:43 AM
    Moderator

All replies

  • Hi Aya,

    Welcome to the MSDN Forum.

    You need medium carrier.

    Option 1, you can make a web service, this web service will call the Java function.

    Option 2, write the data in a file and read it by Java appliction, when finished, write it back to the file.

    You can also try any other way which works.

    Best regards,


    Mike Feng
    MSDN Community Support | Feedback to us
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, November 26, 2012 6:43 AM
    Moderator
  • Thank you so much for the reply. I will try to use one of these options.

    Cheers,

    Aya.


    Aya Zoghby

    Monday, November 26, 2012 5:10 PM