Results 1 to 3 of 3
  1. #1
    Ambergahill is offline Member
    Join Date
    Nov 2010
    Posts
    22
    Rep Power
    0

    Default What to do about an unserializable object

    I need to pass an object that is not serializeable (javax.sound.midi.Sequence) through a Socket. The only way I know how to pass non simple type is to convert them to byte[] first. How can I pass something that is not serializable through a socket?

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    5

    Default

    are you able to serialize it using some other serialization api, such as using XML: xstream, castor, or JSON : SOJO, jsonserializer (both of these on sourceforge)
    where you serialize it into XML or JSON and pass that thru the socket and on the receiving side, deserialize it back into an object?

  3. #3
    Ambergahill is offline Member
    Join Date
    Nov 2010
    Posts
    22
    Rep Power
    0

    Default

    Hmmm....maybe? haha I guess I would have to look into these options further.

Similar Threads

  1. Replies: 2
    Last Post: 11-26-2010, 02:12 AM
  2. Replies: 2
    Last Post: 06-22-2010, 04:29 AM
  3. Replies: 2
    Last Post: 01-29-2010, 02:01 AM
  4. Replies: 1
    Last Post: 03-04-2009, 06:14 PM
  5. Replies: 1
    Last Post: 07-22-2008, 04:27 PM

Tags for this Thread

Posting Permissions

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