javajavapos

jpos.xml generation based on regedit


I am trying to xconfigure javapos to work with MS's Retail Peripheral Simulator. Hovever the xml generation step has gotten me to the point of angry. It's impossible to get working. Tried this

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE JposEntries PUBLIC "-//JavaPOS//DTD//EN"
                             "jpos/res/jcl.dtd">
<JposEntries>

   <JposEntry logicalName="CashDrawer">
        <creation factoryClass="jpos.loader.JposServiceInstanceFactory" serviceClass="OPOSServiceObjects.Test.CashDrawer.1"/>
        <vendor name="Microsoft" url="http://microsoft.com"/>
        <jpos category="CashDrawer" version="1.11"/>
    </JposEntry> 

</JposEntries>

And got the error of not being able to connect to service with logical name CashDrawer... The MS simulator creates this in HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\OLEforRetail\ServiceOPOS\

opostree

and I tried using some tools to add a new device.. that made CashDrawer have enter image description here. MockOPOSDrawer1 has enter image description here. Epson's JAVAPOS tool fails to launch. Is there anything else to use?


Solution

  • Is "MS's Retail Peripheral Simulator" a program included in the POS for.NET SDK?
    If so, it is irrelevant to the OPOS registry and JavaPOS.
    Furthermore, even if it is a simulator that operates as OPOS it is the same thing.

    OPOS or POS for.NET can not be called from JavaPOS as much as jpos.xml changes. The OPOS registry information is for OPOS and will not work with JCL (JavaPOS Config Loader) or JavaPOS Control Object.

    You have one of the following options. However, further software development is necessary in either case.

    1.Create a JavaPOS Service Object that bridges calls from JavaPOS Control Object to OPOS or POS for.NET using technology such as JNI or JNA, and use jpos.xml with the bridge JavaPOS Service Object and OPOS or POS for.NET device name and other parameters are described.

    2.Give up "MS's Retail Peripheral Simulator" and create simulator as JavaPOS Service Object using Java only.