Do applets have their own filesystem?

Hi!

This is a very basic question.

I've an applet on a smartcard which is able to create files.

Selecting an instance is no problem, but what next.

Do I have to create a MF and then a DF and EF and so on?

If so do all other instance of the applet or maybe other applets see the same file structure?

Greetings, globalplayer.

[367 byte] By [globalplayera] at [2007-11-27 8:58:15]
# 1
Java Card does not know the concept of the ISO7816-4 filesystem (MF, DF and EF).
lexdabeara at 2007-7-12 21:24:01 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 2

HI!

Yes I know, but my applet does.

So what does an instance of an applet see on a JavaCard. Only it's own created files or also files which were created from another instance of the same or other applet?

So the question is wether an instance of an applet runs in it's own environment ( memory, files...)

Greetings, globalplayer.

globalplayera at 2007-7-12 21:24:01 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 3

Each applet is separated with firewall. This means that applets cannot access anything from another applet. To meet requirements like yours the concept of Shareable Interface Objects was introduced. This way one can share explicitly defined objects and methods. For reference see Java Card 2.2.1 Runtime Environment Specification, 6. Applet Isolation and Object Sharing --> 6.2.6/6.2.7

lexdabeara at 2007-7-12 21:24:01 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 4
Ok thanks!I haven't read the chapter Applet Isolation yet.
globalplayera at 2007-7-12 21:24:01 > top of Java-index,Java Mobility Forums,Consumer and Commerce...