OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: [Muscle] Problems with CardTerminal Block methods in Linux using Threads and Smartcardio (Java)

From: Ludovic Rousseau (ludovic.rousseaugmail.com)
Date: Wed Jan 06 2010 - 07:18:29 CST


2010/1/6 Sébastien Lorquet <squalylgmail.com>:
> Hi,
>
> I think a single polling thread is what OCF is/was using to generate sc
> events.
>
> The correct way of doing multithread pcsclite is having one SCARDCONTEXT per
> thread, think of contexts as networks connections using sockets. this may
> not be possible (IIUC) with javax.smartcardio.

Exact.

I don't know how to tell javax.smartcardio to call
SCardEstablishContext() in a new thread.
Maybe a new call to TerminalFactory.getDefault();, etc. in the new
thread will do the job. You would have to look at the
javax.smartcardio implementation.

Bye

PS: I would not say it is a bug in pcsc-lite. It is a limitation/feature :-)

--
 Dr. Ludovic Rousseau

_______________________________________________
Muscle mailing list
Musclelists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle