DZone Forums
Go Back   DZone Forums > Community > Languages & Frameworks > Java
Reload this Page how to send object using j2me
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Join Date: Feb 2009
Default how to send object using j2me - 02-02-2009, 12:50 AM

Hi all, I need to send self-created objects from one mobile phone to another mobile phone using J2ME MIDP/CLDC. Does anybody has any idea on it?? I've searched a lot but still cant find one. Thank you very much....
Reply With Quote
  (#2 (permalink)) Old
Moderator
 
jwenting's Avatar
 
Posts: 99
Thanks: 0
Thanked 8 Times in 8 Posts
Join Date: Feb 2008
Send a message via MSN to jwenting
Default 02-02-2009, 03:48 AM

Unless JME supports RMI or plain old ObjectInputStream and ObjectOutputStream (so you can roll your own mechanism) you're out of luck.
I'm not familiar enough with the limitations of the JME API to be able to tell you whether those options are available.

If they're not, you will have to suffice with transmitting object state in some form and rebuilding the objects from scratch at the receiving end.
This will of course break any relation between the objects at either end (as does using Object<Input><Output>Stream, so you'll have to take care of keeping them in synch (if so desired) manually.
Reply With Quote
  (#3 (permalink)) Old
Member
 
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Join Date: Feb 2009
Default 02-04-2009, 09:08 PM

thx for the info...
Any customize serialization recommend?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
library for dumping object content via reflection denis.tsyplakov Java 2 08-28-2008 06:13 AM
send SMS from MIDlet barak_obama Java 0 07-14-2008 04:27 AM
NullPointerException getting with org.eclipse.swt.ole.win32.OleAutomation Object gnaru Zones 0 06-03-2008 07:52 AM
J2me Tutorial rsr Java 2 05-28-2008 05:09 AM
Avoiding retransmissions - j2me Asfia Java 0 04-01-2008 07:01 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com