Hi!
Thanks Brian for the info. I was doing exactly the same thing. But still
the ATR for the next terminal does not come up. The ATR of the card inserted
in the first reader is shown always. I'll include the necessary code for it.
Please see if you can help me. The code:
try
{
SmartCard.start();
CardTerminalRegistry ctr = CardTerminalRegistry.getRegistry ();
Enumeration terminals = ctr.getCardTerminals ();
String myString = new String("wanted terminal");
while (terminals.hasMoreElements () )
{
CardTerminal terminal = (CardTerminal) terminals.nextElement ();
if (terminal.getName().equals(myString))
{
SmartCard myCard = SmartCard.waitForCard(new
CardRequest(CardRequest.ANYCARD));
if (myCard != null)
{
CardID cardID = myCard.getCardID();
System.out.println("CardID : " + cardID);
} //endif
else
System.out.println("\nDid not get a smart card object");
} //endif
} //end while
} //end try
// here catch exceptions for the try block
Please let me know if you have any suggestions. Thanks.
Opencard Student.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
---
> 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.