I'm using sun.security.smartcardio library to work with smartcards. I've used the example source code in Java suggested by Ludovic Rousseau. If I loop that code, when I perform the selection of available card terminals (sun.security.smartcardio.PCSCTerminals.list(Unknown Source)), I have the following exception:
sun.security.smartcardio.PCSCException: SCARD_E_NO_SERVICE
If I restart the application after each use of smartcard, everything works well. Anyone knows why it happens in this way?
Thanks for your help
Francesco