Results 1 to 5 of 5
  1. #1
    christine is offline Member
    Join Date
    May 2012
    Posts
    3
    Rep Power
    0

    Default Variable types and serializing

    I have a java object that is serialized and passed to c# UI code.
    My data varies, so basically I have a variable number of extended values that correlate to a point on a scattergram. The values vary by number, name & type across various data sets.
    The point and the extended values (and their field name and type) are part of the object.

    I was looking for some ideas on how to code this that will not be slow to serialize and de-serialize.

    Ideas?

    Thanks,
    Christine

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default Re: Variable types and serializing

    So you've serialized it with Java and are de-serializing it with C#? And this works? If so, this is surprising to me, that their serialization mechanisms would recognize each other's classes.

  3. #3
    christine is offline Member
    Join Date
    May 2012
    Posts
    3
    Rep Power
    0

    Default Re: Variable types and serializing

    It gets sent from a java process to a c# process (and vice versa). I wrote custom methods to serialize/de-serialize. I'm just having issues with the variable type fields. So far my only thought was to convert to String...

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default Re: Variable types and serializing

    I'm sorry, I'm no expert in the subject of application data transfer with Java. I've heard it done using sockets and some type of XML serialization, but that is going to be verbose and thus slow. I've heard it done with CORBA, but know next to nothing about this except that I've heard that this can be tough to master. Let's wait to see what the more knowledgeable folk have to say. Much luck!

  5. #5
    christine is offline Member
    Join Date
    May 2012
    Posts
    3
    Rep Power
    0

    Default Re: Variable types and serializing

    I am using sockets with custom methods to serialize/de-serialize.

Similar Threads

  1. Variable types
    By Eleeist in forum New To Java
    Replies: 4
    Last Post: 07-27-2011, 06:04 PM
  2. Confusion with variable types
    By popeyito18 in forum New To Java
    Replies: 4
    Last Post: 07-01-2011, 05:58 PM
  3. Unknown Variable Types
    By Slayer in forum New To Java
    Replies: 6
    Last Post: 10-25-2010, 05:44 AM
  4. variable number of fields with different types
    By Sir G. in forum Advanced Java
    Replies: 11
    Last Post: 03-29-2010, 01:40 AM
  5. Dynamic types for a variable.
    By Somelauw in forum New To Java
    Replies: 5
    Last Post: 11-27-2009, 11:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •