There has been some interest in jPOS-Users mailing list regarding how to setup the Client Simulator module from jPOS-EE.
I'll show you here how to use it using the jPOS-template.
Step 1: Install a fresh copy of the jPOS template
git clone https://github.com/jpos/jPOS-template.git or download a copy of it.
Step 2: rename the cloned or downloaded directory
Let's call it 'clientsimulator'. After renaming it,
Step 3: edit
Add a line inside the dependencies block
compile group:'org.jpos.ee', name:'jposee-client-simulator', version:'2.2.1-SNAPSHOT'
Step 4: call
Please note when I say
gradle, you can either use your locally installed
gradle, or the
gradlew wrapper available in the jPOS template that you just downloaded.
This will copy some sample client simulator configuration from the client-simulator.jar to your local
After running that, you'll see a few new files in
- 25_clientsimulator_ui.xml # remove it if you're running headless
- echo_s and echo_r in the
Step 5: call
As an alternative, you can navigate to your
build/install/clientsimulator directory and call
bin\q2.bat if you're on Windows).
As next step, you can edit your
src/dist/deploy/10_clientsimulator.xml file and change it to use your selected packager.