Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Object serialization

 
Gurpreet Saini
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi there,

If my cell phone tries to talk with server socket and in return server sends the object back to cell phone's MIDP application. And my MIDP application is able to read that object ?.

thanks and regards,

gurpreet
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, object serialization is not supported on CLDC.
 
Gurpreet Saini
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi yuan,

If I use CDC then will it be able to support object serialization. and Secondly, if I use SE T 610 then how will be to get data from server through XML ?.

regards

gurpreet
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Gurpreet Saini:
Hi yuan,

If I use CDC then will it be able to support object serialization. and Secondly, if I use SE T 610 then how will be to get data from server through XML ?.

regards

gurpreet


To SE T 610, I used a trick, before the jar is downloaded, I wrote a txt file into the jar according to the client information. Not a good solution, who has a better solution, I'd like to hear it!!!

Thanks!
[ May 14, 2004: Message edited by: Roseanne Zhang ]
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Gurpreet Saini:
Hi yuan,

If I use CDC then will it be able to support object serialization. and Secondly, if I use SE T 610 then how will be to get data from server through XML ?.

regards

gurpreet


1. I think CDC supports serialization. But you need to check the doc.

2. Use an XML parser (e.g., kXML) to reconstruct XML structure into Java objects.
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Roseanne Zhang:


To SE T 610, I used a trick, before the jar is downloaded, I wrote a txt file into the jar according to the client information. Not a good solution, who has a better solution, I'd like to hear it!!!

Thanks!

[ May 14, 2004: Message edited by: Roseanne Zhang ]


If you just need to tell the MIDlet about its host environment, you can just add custom attributes to the jad file. Then, in the provisoning server, you can redirect clients to different jad files based on the device info embedded in their HTTP header.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic