This content has been marked as final. Show 2 replies
Is the requirement to have a java card connected to a client computer that connects to a remote server through some software on the client? Or do you mean you are developing a JC3 connected servlet and you want this to connect to a remote server?
The flow is like this:
Java Card --> POS terminal -> Server
Yes. I'm using JC3.
Here's what I've achieved so far using SocketConnection
Edited by: andirady on Dec 4, 2012 11:59 PM
SocketConnection sc = (SocketConnection) Connector.open("socket://localhost:50007"); InputStream is = sc.openInputStream(); OutputStream os = sc.openOutputStream(); os.write("Hello world!".getBytes()); is.read(buffer); os.close(); is.close(); sc.close();