To be clearer, the JCRE without power simply suspended its state (some in EEPROM) until the next CAD session. At the start of any new CAD session, the JCRE will once again resume it functioning. (The JCRE also starts a transaction at this point). And depending on the implementation, a default applet will become the currently selected applet in place of the previously selected applet.
Also, resources used on a card may or may not be reclaimed. Resources allocated by applets loaded into immutable memory can only be logically deleted -- in essence made to be unreachable. While resources allocated in mutable memory can be reclaimed fully. In the first case, this is normal card life cycle during pre-issuance or post card manufacturing. Note also that a sure fire way to create unreachable resources is to invoke JCSystem.abortTransaction()during the allocation of new objects -- roughly equivalent to calling new for the same local variable in succession for an environment without a GC. Cheers, -----Original Message----- From: Patil, Shirish [mailto:[EMAIL PROTECTED]] Sent: Monday, October 08, 2001 10:42 PM To: [EMAIL PROTECTED] Subject: RE: [OCF] The Java Card Virtual Machine runs "forever" : What it means? I have found it. So, I am pasting the answer for those who are interested. In a PC or Workstation, the Java Virtual Machine runs as an operating system process. When the OS process is terminated the Java applications and their objects are automatically destroyed. By contrast, in Java Card the execution lifetime of the Virtual Machine is the lifetime of the card. Most of the information stored on a card must be preserved even when power is removed from the card. Persistent memory technology (such as EEPROM) enables a smart card to store information even when power is removed. Since the Virtual Machine and the objects created on the card are used to represent application information that is persistent, the Java Card Virtual Machine runs forever. with regards, Shirish > ---------- > From: Patil, Shirish[SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, October 09, 2001 9:08 AM > To: [EMAIL PROTECTED] > Subject: [OCF] The Java Card Virtual Machine runs "forever" : What > it means? > > Hello, > Can someone expalin this ? > "The Java Card Virtual Machine runs "forever", so if an object becomes > unreachable, its memory is gone "forever" (or at least until you delete > the > applet)." > Thanks, > Shirish > > > > --- > > Visit the OpenCard web site at http://www.opencard.org/ for more > > information on OpenCard---binaries, source code, documents. > > This list is being archived at http://www.opencard.org/archive/opencard/ > > ! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email > ! to > ! [EMAIL PROTECTED] > ! containing the word > ! unsubscribe > ! in the body. > --- > Visit the OpenCard web site at http://www.opencard.org/ for more > information on OpenCard---binaries, source code, documents. > This list is being archived at http://www.opencard.org/archive/opencard/ ! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email ! to ! [EMAIL PROTECTED] ! containing the word ! unsubscribe ! in the body. --- > Visit the OpenCard web site at http://www.opencard.org/ for more > information on OpenCard---binaries, source code, documents. > This list is being archived at http://www.opencard.org/archive/opencard/ ! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email ! to ! [EMAIL PROTECTED] ! containing the word ! unsubscribe ! in the body.