File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Java Products and Servers and the fly likes [JavaPOS] Java Properties file (jpos.properties) - XMLRegPopulator (JavaXerces) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "[JavaPOS] Java Properties file (jpos.properties) - XMLRegPopulator (JavaXerces)" Watch "[JavaPOS] Java Properties file (jpos.properties) - XMLRegPopulator (JavaXerces)" New topic
Author

[JavaPOS] Java Properties file (jpos.properties) - XMLRegPopulator (JavaXerces)

karryn james
Greenhorn

Joined: Nov 17, 2011
Posts: 1
Hi,


I got troubled to understand how to configure JavaPOS (http://www.javapos.com/)

is there anyone can help me to use JavaPOS?

how jpos.properties works?

whas is populator meaning?




thanks.


==============================================
jpos.properties
===============================================

#------------------------------------------------------------------------------
# JposTestCase.createPropFile() --> ./jpos/res/jpos.properties file
# Thu Jul 05 11:37:25 EDT 2001
#------------------------------------------------------------------------------

#------------------------------------------------------------------------------
# Required properties
# -------------------
# 1) jpos.loader.serviceManagerClass
#
# This property specifies the manager bootstrap class for the whole JCL. Use
# this property to replace the default "simple" JCL implementation with your
# own. The value must be a fully qualified class name that implements the
# interface jpos.loader.JposServiceManager
#
# 2) jpos.config.regPopulatorClass
#
# This property specifies the registry populator class---that populates the
# entry registry. It must be a fully qualified class name that implements
# the jpos.config.JposRegPopulator interface. If you want to specify
# multiple populators then you should instead use the:
# jpos.config.populator.class.<n>
# property---defined below---that allows you to specify many populators
# There are 3 populators that are provided with the JCL by default:
# a) jpos.config.simple.SimpleRegPopulator
# This populator loads/saves JposEntry objects as serialized objects in
# a Java serialized file, typically named: jpos.cfg
# b) jpos.config.simple.xml.XercesRegPopulator
# This populator uses Xerces and implements an XML parser according to
# the jpos/res/jcl.dtd. By default, the XML file must be named jpos.xml
# However, this named can be changed using the property (see below):
# jpos.config.populator.file.<n>
# c) jpos.config.simple.xml.Xerces2RegPopulator
# This populator uses Xerces2 and implements an XML parser according to
# the jpos/res/jcl.xsd XML schema. The file name is same as above; however,
# since this parser expects an XML schema, the XML file header is different.
# See the jpos-schema.xml file.
#
# NOTE: Xerces and Xerces2 are XML parsers from the http://www.apache.org
# Jakarta projects.
#------------------------------------------------------------------------------

jpos.loader.serviceManagerClass=jpos.loader.simple.SimpleServiceManager

#jpos.config.regPopulatorClass=jpos.config.simple.SimpleRegPopulator
jpos.config.regPopulatorClass=jpos.config.simple.xml.SimpleXmlRegPopulator
#jpos.config.regPopulatorClass=jpos.config.simple.xml.Xerces2RegPopulator

#------------------------------------------------------------------------------
# Use this property to for the JCL to load a specific file (cfg or XML)
# when not using multiple populators via the jpos.config.populator.class.<n>
# multi-property
#------------------------------------------------------------------------------

#jpos.config.populatorFile=jpos1.cfg

#------------------------------------------------------------------------------
# To define multiple populator then comment the property
# "jpos.config.regPopulatorClass"
# and use the following multiproperty properties (defines 2 populators one
# XML and one serialized)
#------------------------------------------------------------------------------

#jpos.config.populator.class.0=jpos.config.simple.xml.SimpleXmlRegPopulator
#jpos.config.populator.class.1=jpos.config.simple.SimpleRegPopulator

#------------------------------------------------------------------------------
# You can also define populator files for each populator as follows
#------------------------------------------------------------------------------

#jpos.config.populator.file.0=jpos0.xml
#jpos.config.populator.file.1=jpos1.cfg

#------------------------------------------------------------------------------
# Tracing properties
# ------------------
# All tracing properties that are boolean attributes can be turned on of
# off using ON/on/TRUE/true or OFF/false for any other value.
# The available properties are (see commented properties below):
# 1) jpos.tracing
# This is a legacy property and will turn the global tracer on. You should
# note that it is preferable to use the named tracing property instead
# 2) jpos.util.tracing.TurnOnAllNamedTracers
# This property when turned on will enable all named tracers. A named tracer
# will print out a message prepended by [<name>] where <name> is the name of
# the tracer in question.
# 3) jpos.util.tracing.TurnOnNamedTracers = name1, name2, ...
# This will turn on the named tracers listed as name1, name2, ... this is
# useful if when all named tracers are on you want to filter the output
#------------------------------------------------------------------------------

#jpos.tracing=ON
#jpos.util.tracing.TurnOnNamedTracers=XercesRegPopulator, AbstractRegPopulator, MainFrame
#jpos.util.tracing.TurnOnNamedTracers=JposServiceLoader,SimpleEntryRegistry,SimpleRegPopulator,XercesRegPopulator
#jpos.util.tracing.TurnOnAllNamedTracers=OFF

===========================================================================
end
============================================================================
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18986
    
    8

You will find the documentation page here. It has links to a programming guide, an FAQ, and a document about deployment. Are you sure your question is not answered by any of those documents?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [JavaPOS] Java Properties file (jpos.properties) - XMLRegPopulator (JavaXerces)