There is no simple answer to the question.

OCF synchronizes concurrent threads within one JVM. While a SmartCard object
exists a SlotChannel object is allocated in the corresponding
CardServiceScheduler.
As long as the SlotChannel object is allocated the JVM hosting OCF has exclusive
access to the card and a concurrently running JVM (or other application) can not
access the card.

If the JVM hosting OCF has no more open SlotChannels (has invoked
SmartCard.close() on all SmartCard objects), the other process can potentially
access the Smart card reader. This depends on the CardTerminal implementation.
The PCSC10CardTerminal shares the smart card reader as soon
as the SlotChannel object is closed. The Pure Java CardTerminal opens the COM
port when it is opened (regardless of an open SlotChannel) and thus
disallows other concurrent processes to access the smartcard reader.


Peter Bendel, Smartcard Solutions,       Tel.: +49-7031-16-4650, Fax -4888
Dept. 4969, Bldg. 7103-01, Room 01-109        Lotus Notes:  bed@ibmde
IBM Pervasive Computing Division         Internet: [EMAIL PROTECTED]

Please visit the OpenCard Framework's homepage at http://www.opencard.org


[EMAIL PROTECTED] on 08.12.99 22:16:24

Please respond to "Tom McKearney" <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: Peter Bendel/Germany/IBM)
Subject:  [OCF]  OCF support multiple JVMs at the same time?




Can I have an application running on my pc in one JVM and an applet running
in Netscape's JVM without having contention problems?
In other words, can OCF handle synchronization across JVMs?

T




---
> 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.

Reply via email to