Hello

> I have found on the list a mesage that talks about dynamic cardservice
> register.
>
> I have some questions about this.
>
> What do you have to have configured on the opencard.properties file?.
> I would like to know if it is possible to have only the cardterminal
> configured and to set in runtime the cardserviceFactory and the
> cardServices.

That's exactly how it works. Configure the CardTerminal(s) and, optionally,
some tracing output in the opencard.properties file. In your applet or
application, register the CardServiceFactories you are using at the
CardServiceRegistry, like mentioned in the mail you found. The CardServices
can not and need not be registered. By registering the CardServiceFactory,
you are making all CardServices of that factory available. For example:

{
  // start OCF and other initialization
  ...

  // "MyCardServiceFactory" supports MyCardService01 to MyCardService99
  // for the cards I'm working with

  CardServiceFactory myCSF = new MyCardServiceFactory();
  CardServiceRegistry.getRegistry().add(myCSF);

  // from now on, OCF will be able to instantiate MyCardService01 ... 99
  // for the cards I'm working with
  ...
}


regards,
  Roland Weber
  IBM Pervasive Computing Division - SmartCard Solutions




Visit the OpenCard Framework's WWW site at http://www.opencard.org/ for
access to documentation, code, presentations, and OCF announcements.
-----------------------------------------------------------------------------
To unsubscribe from the OCF Mailing list, send a mail to
"[EMAIL PROTECTED]" with the word "unsubscribe" in the BODY of the
message.

Reply via email to