Setting up a communication between two parallel running MIDlets

HelloI have two parallel running MIDlets on my phone and want to set up a communication between them.I thought about using the Record Managemet System (RMS).Dos anybody has experience with it an can tell me if it is possible?Thanks Volker
[280 byte] By [dyasa] at [2007-10-3 3:10:08]
# 1
hi, if both of your midlet are from same midletsuit you can use RMS. please use synchronized keyword for all rms interactions. please check avilable example codes from sun site under documentation.:)
jetslimited@yahoo.coma at 2007-7-14 21:00:54 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

Hi,

As far as I know:

Because of limited resources of mobile devices, 2 MIDlets can抰 run simultaneous on a MIDP-device. (but a MIDlet can be multi-threaded!).

A MIDP-device hosts a single instance of KVM!

I read somewhere, that an implementation may support 2 KVMs. I think only on such device it抯 possible to run 2 MIDlets (belonging to the same MIDlet suite or 2 distinct ones) simultaneous!

The MIDlets of a suite can share directly record store(s) of their MIDlet suite. But if you want to share a record store between MIDlets, packaged in different suites, then the owing MIDlet has to declare the record store explicitly as 搒hared?(at creation time).

In such cases:

If a record store is accessed by several threads (created by a MIDlet), then operations on the record store must be synchronized in order to keep the data accuracy.

However it抯 better to minimize the synchronized code-block as far as possible (for higher application performance).

bye,

Asghar

Asghara at 2007-7-14 21:00:54 > top of Java-index,Java Mobility Forums,Java ME Technologies...