JCRMI client (host) application - need a help desperately!

Hi, guys!

I have a simple JCRMI applet that works fine with JCOP Shell within Eclipse. But I have very foggy idea about how to implement a client (host) application for it. I have read the tutorial on http://developers.sun.com/techtopics/mobility/javacard/articles/javacard through and understood it well, but it seems to me that the tutorial is obsolete a bit. Am I right? If so can somebody show me the quick and dirty way to create JCRMI client (a template code if possible)! Must I use OCF classes or using rmioffcard.jar from JCOP Tools would be enough? I'd be obliged for any help!

[602 byte] By [n2304770a] at [2007-11-27 8:17:58]
# 1

rmioffcard framework is sufficient. This is the template you have to follow:

JCTerminal terminal = new PCSCJCTerminal();

terminal.init("any|e");

JCard card;

JCApplet applet;

card = new JCard(terminal, null, 1000);

applet = new JCApplet(card, APPLET_AID, 0, APPLET_AID.length);

AppletInterface appletObject =

(AppletInterface)RMIObjectFactory.getInitialReference(applet);

// call the methods declared in the AppletInterface

No need to generate stubs or anything, it just works like this.

Woja at 2007-7-12 20:03:24 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 2
It seems what I want. Great! Thank you very much!
n2304770a at 2007-7-12 20:03:24 > top of Java-index,Java Mobility Forums,Consumer and Commerce...