1 JPOS Programmer s GuideRevision: of ContentsCopyright notice .. viPreface .. vii1. The jPOS Project .. About .. jPOS License .. About ISO-8583 .. Downloading jPOS .. Directory structure .. Using jPOS .. Building jPOS .. Available tasks .. Running jPOS .. 52. About ISO-8583 .. An ISO-8583 primer .. International standard ISO 8583 .. Message format .. Wire protocol .. Message flow .. jPOS approach to ISO-8583 .. ISOMsg & Co.. Packing and unpacking .. Creating custom packagers .. Managing the wire protocol with ISOC hannel .. Accepting connections with ISOS erver .. Multiplexing an ISOC hannel with a MUX .. IncomingListener.
2 253. Support classes .. jPOS' Logger .. NameRegistrar .. Configuration .. SystemMonitor .. Profiler .. DirPoll .. ThreadPool .. 374. Packagers .. Implementing Custom Packagers .. GenericPackager .. 385. Channels .. TCP/IP Socket-based channels .. SSL Channels .. LoopbackChannel .. ChannelPool .. Channel Filters .. MD5 Filter .. ChannelInfoFilter .. DelayFilter .. DebugFilter .. ThroughputControlFilter .. BSHF ilter .. Aditional filters .. 476. jPOS Space .. Space interface .. Local Space interface .. Space Factory .. TSpace .. JDBMS pace .. JESpace .. 52jPOS Programmer s SpaceInterceptor.
3 SpaceTap .. SpaceUtil .. 537. Q2 .. Running Q2 .. Command line options .. Embedding Q2 .. Shutting down Q2 .. Writing your first Q2 Script .. QTest - a sample QBean .. QBeanSupport .. Dynamic classloading .. 708. Q2 jPOS Services .. ChannelAdaptor .. QBean descriptor .. Handling alternate connections .. Channel timeout, keep-alive, connection-timeout .. OneShotChannelAdaptor .. QBean descriptor .. QMUX .. QBean descriptor .. MTI mapping and default key .. QServer .. QBean descriptor .. 799. TransactionManager .. TransactionConstants .. Transaction Context .. Context Recovery Interface .. Assembly Line.
4 AbortParticipant .. GroupSelector .. TransactionManager implementation .. TM use of spaces .. Configuration .. TransactionStatusListener .. Transaction Participants .. Switch participant .. CheckFields participant .. SelectDestination .. QueryHost .. SendResponse .. JSParticipant .. Pause .. 9810. ResultCode .. CMF .. Result holder class .. 101A. Getting involved .. 102B. License .. 103ivList of ISO-8583 message structure .. Sample 0800 message .. Primary Bitmap .. Another 0800 message .. Primary Bitmap .. Secondary Bitmap .. Sample authorization .. Authorization timeout .. Sample authorization request.
5 Sample authorization response .. ISOF ieldPackagers .. Sample ISOC hannel implementations .. IncomingListener Configuration Properties .. Logger s main classes .. LogListener .. NameRegistrar s prefix .. Space Names .. OneShotChannelAdaptor Attributes.. TransactionConstants .. AssemblyLine .. Switch participant Configuration Properties .. CheckFields Configuration Properties .. SelectDestination Configuration Properties .. QueryHost Configuration Properties .. SendResponse Configuration Properties .. 97vList of ISOC hannel example .. ISOS erver .. MUX example .. Profiler .. DirPoll Processor .. ISO-8583 version 1993 packager implementation .. ISO-8583 version 1993 packager configuration.
6 SocketFactory configuration .. Using the SpaceFactory .. Sample TSpace use .. Sample GroupSelector implementation .. jPOS Team .. 102viCopyright noticeCopyright 1998-2017 by jPOS Software SRL, Uruguay. All rights reserved. No part of this book may be reproduced in anyform or by any electronic or mechanical means, including information storage and retrieval systems, without permission inwriting from jPOS Software SRL, except by a reviewer who may quote brief passages in a document covers jPOS 1. The jPOS About jPOS project is hosted at In order to stay up-to-date with jPOS news, you may want to visitthe project s main page, as well as its blog at For an up to date list of project resources, youcan visit the page. There s also a low traffic jPOS News mailing list where we postimportant announcements, such as a the availability of new versions of this Guide .
7 You re encouraged to registerby visiting the project s main page at is hosted at may also want to follow us on Twitter, where we keep a list of users who regularly tweet about jPOS at@apr/lists/jpos [ ].In addition, you may want to subscribe to our users' mailing list [ ].Commit notifications can be tracked by following @jposcommits [ ].We are also active on Slack [ ]. Please request an invitation via e-mail to you happen to tweet about jPOS, please use the hash tag #jPOS so we can follow jPOS LicensejPOS is distributed under the GNU Affero General Public License version NOTICEIf you don t plan to release your jPOS based application under a compatible license (see FAQ [ ] where you can find a licensecompatibility matrix) you need to buy a commercial license (you can contact us using the contactform [ ]). About ISO-8583We assume the reader is familiar with the ISO-8583 starters, you can take a look at the Wikipedia ISO_8583 [ ] page andthe Section , An ISO-8583 primer of this document, but for any serious work you need to get a copy of thestandard from is a high level standard, and vendors have implemented it in slightly different ways.
8 You also need theprotocol specifications for your particular you are starting a new payments application and you have full control over your spec, you may want toconsider using the ISO-8583 v2003 based jPOS Common Message Format described in jPOS-CMF is an open source project, you can get the DocBook sources in the jPOS Githubreporitory at and modify it to fit your needs. This is an openspec, we expect institutions using it to get in touch with us in order to improve jPOS Downloading jPOSThe community edition of jPOS can be downloaded from the jPOS Download [ ] Git repository is hosted at Github [ ]. The repository has many branches and you are dealing with a legacy jPOS application, you want to use the master you are looking for older jPOS versions, you can find them in the SourceForge [ ] repository, but please note all current development activity is taking place in the Github [ ] repository, Directory structurejPOS uses Gradle [ ] with a multi-module modules are defined in the file and listed below: jpos : this is the jPOS system compat_1_5_2 : compatibility with older versionsYou ll find the jPOS sources in the jpos/src directory.
9 |-- COPYRIGHT |-- CREDITS|-- LICENSE|-- |-- |-- ..|-- gradlew |-- |-- gradle| `-- wrapper| |-- | `-- |-- jpos | |-- | |-- src| | |-- main| | | |-- java| | |-- main| | | |-- resources| | |-- dist | | | |-- bin| | | | |-- bsh| | | | |-- q2| | | | |-- start| | | | `-- stop| | | |-- cfg| | | | |-- packager| | | | | |-- | | | | | |-- | | | | | |-- | | | |-- deploy| | | | |-- | | | | `-- | | | `-- log| | | `-- jPOS Project3 Copyright noticeReadme file in markdown format shown in the Github [ ]
10 RepositoryMain Gradle configuration fileGradle s settings file, lists the modules to be compiled, in this case, jpos and is recommended that you install Gradle locally, but for a quick build, you can use the Gradle wrapper(gradlew in Unix, in Windows).Home for the jPOS moduleTemplate for a production distribution directory with its deploy, cfg, bin and log directories|-- compat_1_5_2 | |-- | |-- | |-- src| | `-- main| | `-- java| | `-- org| | `-- jpos| | | `-- |-- legal | |-- | |-- |-- incoming ..Backward compatibility with version directory with contributor license agreementsContributed files not yet merged into jPOS.