To build an ANDROID application using JPOS

769 views
Skip to first unread message

derin...@gmail.com

unread,
Aug 23, 2016, 11:50:04 AM8/23/16
to jPOS Users
Good evening to you all from here.

I have tried searching the JPOS mailing list, and i am yet to find a way out from my end. (pardon my use of language)

What then are the things i have tried?

I already tried using different JPOS packagers on this ANDROID POS device
which are ISO87APackagerBBitmap()
GenericPackager and
XMLPackager();

but, the issue here is

E/dalvikvm: Could not find class 'javax.management.ObjectInstance', referenced from method org.jpos.q2.Q2.deploy

been caused by jPOS Q2 which solely depends on a JVM ...since Android runs a Dalvik or ART runtime. My compiler toolchain does the convertion of my Java classes into Dalvik instructions.  Therefore since Q2 requires JMX on runtime...as a result of which it gives the error above

although, i have read about different suggestions (in which one is to create create a serverside gateway that processes JSON through a HTTPS REST endpoint), but the issue here is the connection to the server-side, reason been the bandwidth of INTERNET over here (in making connection)....so, in the process of transaction, there might be loss..in communication....and my management doesn't want to go for that too, so..they suggested using JPOS on this Android POS..since we have once used JPOS on a pure JAVA POS which worked effectively. 

So, the issue here is to know, if there is any update done on JPOS, or better still, how to bypass using Q2..

I do appreciate your time.
Looking forward to hearing and learning from my teachers.

chhil

unread,
Aug 23, 2016, 12:00:28 PM8/23/16
to jpos-...@googlegroups.com
You need a stripped down version of jpos that works on the android java vm, there is nothing that is currently available from a jpos build. You would need to do this , so that you get the basics from the build based on dependencies, packager support, channel support , and ISOMsg support and communicate using the channel to send and receive. I would think you don't need to handle multiple requests and pairing request to responses on the device.

I haven't done this myself, but I don't see a reason why it would not work.
-chhil 

--
--
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
 
Join us in IRC at http://webchat.freenode.net/?channels=jpos
 
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/0e3ef222-c4e3-4693-9678-04a62f9632bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

derin...@gmail.com

unread,
Aug 23, 2016, 12:21:15 PM8/23/16
to jPOS Users


On Tuesday, August 23, 2016 at 5:00:28 PM UTC+1, chhil wrote:
You need a stripped down version of jpos
 
I am making use of JPOS 2.0.2
 

chhil

unread,
Aug 23, 2016, 12:22:52 PM8/23/16
to jPOS Users

You need to strip it down, extract the classes that help you with packing,  unpacking and communication.
-chhil


--
--
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
 
Join us in IRC at http://webchat.freenode.net/?channels=jpos
 
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
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/6e72f9b2-a29c-4fde-9cd3-ebe23ff77e26%40googlegroups.com.

Alejandro Revilla

unread,
Aug 23, 2016, 12:25:17 PM8/23/16
to jPOS Users
You probably want to start trying to compile just the packages `org.jpos.iso` and `org.jpos.util` and see how it goes.

Among those two packages you probably have most of what you need for a thin Android based ISO-8583 client.

​Keep us posted, perhaps we could have an Android branch.


derin...@gmail.com

unread,
Aug 23, 2016, 5:09:19 PM8/23/16
to jPOS Users


On Tuesday, August 23, 2016 at 5:25:17 PM UTC+1, Alejandro Revilla wrote:
You probably want to start trying to compile just the packages `org.jpos.iso` and `org.jpos.util` and see how it goes.

in the Logger.java file (found in the org.jpos.util package), I will be needing the
org.jpos.q2.Q2

which is not compiling with android JVM....and, i am only using the 2 packages presently :) i.e. org.jpos.iso and org.jpos.util


Alejandro Revilla

unread,
Aug 23, 2016, 5:12:32 PM8/23/16
to jPOS Users
You can review the code and take away the references to Q2. That will be part of your careful migration work.

Perhaps you need to create your own Logger class.

--
Reply all
Reply to author
Forward
0 new messages