Vending Machine Jpos Solution

13 views
Skip to first unread message

dannygaviria

unread,
Oct 5, 2011, 3:18:19 PM10/5/11
to jpos-...@googlegroups.com
Hi everybody, and specialy to Andy Orrock ( I see he is the expert):

I understand jpos and jpos-ee, the basics, concepts etc..., run multiple
server mux and chanels, i did a little java program to comunicate with the
server etc. But i have not internalized all it.

I'm working in a vending machine solution, and i have the next facts and
questions:

1. The vending machine works with a cash drawer.
2. The vending machine communicates through iso8583, with my server.
3. My server communicates with the acquirer through iso8583.

I have the next questions:

1. I need run a Q2 server in each vending machine, or a java script with the
embeded q2 is enough with your respective ISOChannels?
2. If i need to run the Q2 server, I need one ISOChannel per each vending
machine? maybe this question is redundant, but i have so doubts.
3. Is necesary an echo test in each vending machine?
4. In my server i need one or various mux for the server acquirer and one or
various for my nodes ( vending machines) ?

And like a special order:

Somebody can help me, with the best solution or some example.

Thanks to all.

-----
Danny Gaviria
--
View this message in context: http://jpos.1045706.n5.nabble.com/Vending-Machine-Jpos-Solution-tp4873872p4873872.html
Sent from the jPOS - Users mailing list archive at Nabble.com.

Mark Salter

unread,
Oct 8, 2011, 8:29:02 AM10/8/11
to jpos-...@googlegroups.com
On 05/10/2011 20:18, dannygaviria wrote:

> I'm working in a vending machine solution, and i have the next facts and
> questions:
>
> 1. The vending machine works with a cash drawer.

I wondered if was the JavaPOS project related and thus if you had the
right project? That project uses the wrong package name (IMHO), often
leading people here...

> 2. The vending machine communicates through iso8583, with my server.

Ok, perhaps you are in the right place :-)

> 3. My server communicates with the acquirer through iso8583.
>
> I have the next questions:
>
> 1. I need run a Q2 server in each vending machine, or a java script with the
> embeded q2 is enough with your respective ISOChannels?

You need enough functionality to drive the vending machine, I don't
think you will need a server at each vending machine, but perhaps the
vending machine talks to something local initially - could it just
connect to a remote server?

> 2. If i need to run the Q2 server, I need one ISOChannel per each vending
> machine? maybe this question is redundant, but i have so doubts.

Each vending machine will need to connect to the central host and so
will need a channel to it?

> 3. Is necesary an echo test in each vending machine?

That will depend on your solution, an echo exchange is a way to watch
for and react to outages *ahead* of a transaction being conducted>?

> 4. In my server i need one or various mux for the server acquirer and one or
> various for my nodes ( vending machines) ?

A mux sits facing an outbound connection (matching responses to requests
and requesters) , so if you have multiple channels from the vending
machine to a server (or servers) than a mux might be a good idea.

The set-up will depend on your solution, jPOS provides all of the
components you will need how ever it is up to you to arrange them as you
see fit.

>
> And like a special order:
>
> Somebody can help me, with the best solution or some example.

I think your need is currently too vague. A lot will depend on what
your 'vending machine' does, how it wants to operate or what you want to
do - if you have full control of how it works.

--
Mark

dannygaviria

unread,
Oct 8, 2011, 9:35:40 AM10/8/11
to jpos-...@googlegroups.com
Thanks Mark:

1. I control all the aspects of the vending machine, The client interface,
the cash drawer, the final transaction etc... (this aspects are fixed and
running). lack only the culmination of purchase. That's why I use Jpos
or/and JPOS-EE.
2. I have a several vending machines , has communicate with one or various
servers in my headquarters.
3. The acquirer company required of me, that communication with the servers
in my headquarters is directly with the vending machines and its platform
either directly to my server.


[vending machines] <== iso8583==> [my servers] <==iso8583==> [acquirer
server]
(simple java class?) (Q2 servers)

the model is the next:

Several vending machines communicates with a several serves via iso8583 to
centralize all the operations in one place ( serving as a bridge of
communication with the server of the acquirer, this acquirer is not a bank,
but his platform runs ISO8583 ).

According to what I can deduce:

1. I can create a java script to send the isomessage to my server.
2. My server have to run one or various Q2.
3. I can in the request listener (with an BSH script) of my server
communicate (send and receive a isomessage) with the acquirer platform?

Thanks a lot.

Dany Gaviria.
Future jpos expert, with your help. :-)

-----
Danny Gaviria
--
View this message in context: http://jpos.1045706.n5.nabble.com/Vending-Machine-Jpos-Solution-tp4873872p4882788.html

Matthew Carlson

unread,
Oct 8, 2011, 9:32:09 PM10/8/11
to jpos-...@googlegroups.com
If I'm reading right, I thing this is the kind of answer you are looking for:

[VendingMachines]<==iso8583==>[MyServers]<==iso8583==>[AcquirerServer]


This sounds conceptually like a simple system I have in place, that woks internally to our department.
If you have 1 Server, and your acquirer gave you 1 server to connect to, it would look something like this

[VendingMachines]<==>[(( [QServer]<==>[QMUX]<==>[ChannelAdaptor/Channel)))==>[AcquirerServer]

you will have 1 Server on your server, the QMux is what allows the server to let N vending machines connect.
All the vending machines connect to the qserver, and the Mux will match the requests and responses up, so the responses go back to the right vending machine.
I dont have everything in front of me to make sure this is very complete, but I think this is  the knd of info you were looking for.


--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage.
Please support jPOS, contact: sa...@jpos.org

You received this message because you are subscribed to the  "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users

dannygaviria

unread,
Oct 9, 2011, 11:01:41 AM10/9/11
to jpos-...@googlegroups.com
Thanks Matthew.

That's the concept. You have a clear idea.

With your answer and the Mark answer i have clear too. But one doubt
assault me, the channel adaptor in the Q2 server is the same for the channel
incoming from the VendingMachines, or i need a implemetation of the
(QMUX,ChannelAdaptor) for each side of the bridge.

[VendingMachines]<==>[ ( (ChanelAdaptor,QMUX) <--> (Q2) <-->
(ChanelAdaptor,QMUX) ) ] <==> [AcquirerServer]

Or:


[VendingMachines] <==> [ Q2
] <==> [AcquirerServer]
[ ( (ChanelAdaptor,QMUX)
]

Maybe for somebody this question is silly, but we say , "who does not know,
is like not see"

Thanks so much to all.

Danny Gaviria.
Jpos apprentice.

-----
Danny Gaviria
--
View this message in context: http://jpos.1045706.n5.nabble.com/Vending-Machine-Jpos-Solution-tp4873872p4885388.html

Reply all
Reply to author
Forward
0 new messages