I'm new with Java and currently developing a smart card system that with Java Card connected edition. The connection used is TLS, I'm using Apache Tomcat with SSL enabled. The problem is I don't know how does Terminal POS communicate with the server.

Currently I've done simple Java Card programming but I haven't touch the server part yet. I don't know what type of data is send to the Terminal POS by the server. Anyone can show me the way?

Thanks in advance.