posted 13 years ago
One solution I've used is to add a way for your midlet suite to read out the contents of the RMS to a listening connection. I used a CommConnection to write the data to a device listening on the serial port, but using an HttpConnection to record the data on a server would work just as well. Unfortanately, this will only back up the indiviual midlet suite's RMS records. I hope this helps.
Sam lx
Greenhorn
Posts: 19
posted 13 years ago
It is possible to access a record store in another MIDP suite, but only if permission to share the record store was specified at the time of the record store's creation.
To create a RecordStore with permission to allow access from other MIDlet suites, use the four parameter version of 'openRecordStore' and specify 'Record.AUTHMODE_ANY' for the third parameter.
E.g.
To access such a record store from another MIDlet use the three parameter version of 'openRecordStore', and use the 'MIDlet-Vendor' and 'MIDlet-Name' attributes from the MIDlet's JAD [the JAD of the MIDlet whose record stores you are trying to access] as the second and third parameters.
E.g.
To create a RecordStore with permission to allow access from other MIDlet suites, use the four parameter version of 'openRecordStore' and specify 'Record.AUTHMODE_ANY' for the third parameter.
E.g.
To access such a record store from another MIDlet use the three parameter version of 'openRecordStore', and use the 'MIDlet-Vendor' and 'MIDlet-Name' attributes from the MIDlet's JAD [the JAD of the MIDlet whose record stores you are trying to access] as the second and third parameters.
E.g.
