Initializing and Shutting Down the Card Connection

The client application must open the connection to the card and close it at the end.

Note:

ApduIOCardAccessor takes its settings from the file jcclient.properties. For example. when the RMIPurse sample demo client application runs, the JC_HOME_SIMULATOR/samples/classic_applets/RMIPurse/client directory containing the properties file is included in the CLASSPATH. The directory in which you installed the developer's kit is indicated as JC_HOME_SIMULATOR.

On Microsoft Windows platforms, use backslashes in directory paths, instead of forward slashes.

The following code shows opening and closing the connection using the RMI client framework:

      CardAccessor ca = null;
      // The following line initializes card connection according to 
      // parameters listed in the jcclient.properties file:
      ca = new ApduIOCardAccessor();
      ...
      // The following line powers down the card and closes the connection:
      ca.closeCard();