JXFS Service architecture

The toolkit JXFS Service acts as a layer between the Java™ client application and the J/XFS Device Control. To do this, the service provides the following functionality:

The architecture of the JXFS Service is the following:

Diagram of the architecture of the JXFS service.

An application can instantiate many instances of a JXFSService class. If an application needs to use two devices, it must instantiate one instance for each device. If two Java processes need to access the same device, each one can instantiate one J/XFS Service instance for the same device, and then they can use the claim() and release() methods for getting exclusive use of the device. Each of the JXFS Service instances has a different J/XFS Device Control that corresponds to a physical device, whose J/XFS name is specified as an attribute tag of the service tag.

To support the various types of devices, the toolkit provides the following JavaBeans™ that extend the JXFSService class:

Note that you can create other JavaBeans to support other devices such as alarms, cash dispensers (recyclers), depositories, printers, and sensors.