This discussion is archived
1 Reply Latest reply: Aug 16, 2012 11:50 AM by safarmer RSS

Any ideas about creating persistant object during execution?

952006 Newbie
Currently Being Moderated
As a newbie, I wrote a badly designed applet which is used to share different keys with different devices. Now I got a problem about if the number of devices increased, how to generate new key objects during the execution and store it as a persistant object. I would use a (short) variable to restrict the number of devices and I only know using JCSystem. Transaction to update a byte array. Does anyone has good ideas about this problem?
  • 1. Re: Any ideas about creating persistant object during execution?
    safarmer Expert
    Currently Being Moderated
    Could you explain a little more detail about what you are trying to do? Are you allocating a certain amount of space for keys at install time and setting a limit to this or do you plan to allocate memory at runtime as new devices come along? Do you have some sample code to share that would clarify what you are trying to do?

    I would suggest creating all your data up front and tracking which keys are allocated.

    - Shane

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points