简体   繁体   中英

How to write jPOS service

I have a PoS device which is created by me. Now I want to connect my device to PoS computer. For that as I have to write my own jPOS service.
I searched for a sample or tutorial for days, but I couldn't find any.
How can I achieve this?

  1. Download jpos114.jar .
  2. Add this jar file into your project and create a new class to implement the service. For example: public class MyLineDisplay implements LineDisplay114 and implement the functions you will use.
  3. Export the service to be a jar file for developing JavaPOS application or you can just use Postest/Postest2 to test device service.
  4. Create a jpos.xml file to write down the information of your device service for device control to connect to the device service. Postest/Postest2 also include jpos.xml and you can refer to it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM